Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ILuUsersBusiness.cs 1.0KB

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