You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ILuUsersBusiness.cs 846B

123456789101112131415161718192021222324252627
  1. using Luticate2.Auth.Dbo.Users;
  2. using Luticate2.Utils.Dbo.Result;
  3. using Luticate2.Utils.Interfaces;
  4. namespace Luticate2.Auth.Interfaces.Users
  5. {
  6. public interface ILuUsersBusiness : ILuCrudInterface<LuUsersAddFullDbo, LuUsersFullDbo, LuUsersEditFullDbo, string>
  7. {
  8. string GenerateSalt();
  9. string HashPassword(string password, string salt);
  10. bool VerifyPasswordHash(string password, string hash, string salt);
  11. LuResult<LuUsersLoginResultDbo> Login(string username, string password);
  12. LuResult<bool> Logout(string token);
  13. LuResult<LuUsersFullDbo> FindByUsername(string username);
  14. LuResult<LuUsersFullDbo> Register(LuUsersAddDbo user);
  15. LuResult<LuUsersFullDbo> Edit(string id, LuUsersEditDbo user);
  16. LuResult<LuUsersFullDbo> Me();
  17. }
  18. }