mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Fixed legacy password checks.
This commit is contained in:
parent
737a17c7d3
commit
a3b59ef041
@ -35,7 +35,7 @@ namespace Teknik.IdentityServer.Security
|
||||
|
||||
// Test legacy password hashes
|
||||
#region Legacy Checks
|
||||
byte[] hashBytes = SHA384.Hash(user.UserName, providedPassword);
|
||||
byte[] hashBytes = SHA384.Hash(user.UserName.ToLower(), providedPassword);
|
||||
string hash = hashBytes.ToHex();
|
||||
if (hashedPassword == hash)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user