using Luticate2.Auth.Dbo.Users; using Luticate2.Utils.Dbo.Basic; using Luticate2.Utils.Dbo.PaginatedRequest; using Luticate2.Utils.Dbo.Result; using Luticate2.Utils.Interfaces; namespace Luticate2.Auth.Interfaces.Users { public interface ILuUsersBusiness : ILuCrudInterface { string GenerateSalt(); string HashPassword(string password, string salt); bool VerifyPasswordHash(string password, string hash, string salt); LuResult Login(string username, string password); LuResult Logout(string token); LuResult FindByUsername(string username); LuResult Register(LuUsersAddDbo user); LuResult Edit(string id, LuUsersEditDbo user); LuResult Me(); LuResult> Sessions(LuPaginatedRequestDbo paginatedRequestDbo); } }