1
0
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:
Uncled1023 2019-01-28 17:58:02 -08:00
parent 737a17c7d3
commit a3b59ef041

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)
{