Browse Source

Fixed legacy password checks.

master
Teknikode 7 months ago
parent
commit
a3b59ef041
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      IdentityServer/Security/PasswordHasher.cs

+ 1
- 1
IdentityServer/Security/PasswordHasher.cs View File

@@ -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