Merge pull request #356 from hchen2020/master

ignore pwd check for debugging
This commit is contained in:
C. Oceania 2024-03-22 17:38:48 -05:00 committed by GitHub
commit d5f93d1318
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,10 +114,12 @@ public class UserService : IUserService
return default;
}
#if !DEBUG
if (Utilities.HashText(password, record.Salt) != record.Password)
{
return default;
}
#endif
var accessToken = GenerateJwtToken(record);
var jwt = new JwtSecurityTokenHandler().ReadJwtToken(accessToken);