Browse Source

Fixed legacy password checks.

pull/111/head
Teknikode 3 years ago
parent
commit
a3b59ef041
  1. 2
      IdentityServer/Security/PasswordHasher.cs

2
IdentityServer/Security/PasswordHasher.cs

@ -35,7 +35,7 @@ namespace Teknik.IdentityServer.Security @@ -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…
Cancel
Save