Adding SHA256 password encryption and password verify

This commit is contained in:
2025-03-11 23:36:49 +01:00
parent 78911eb877
commit 0b354988fd
14 changed files with 389 additions and 18 deletions

View File

@@ -29,10 +29,13 @@ public class AuthenticatedUser_Tests
LastName = "test",
Email = "test",
PasswordHash = "test",
PasswordSalt = "test",
Password = "test",
Role = new DatabaseSqlServer.Role()
{
Name = "test"
}
},
IsTestUser = true
};
AuthenticatedUser authenticatedUser = new AuthenticatedUser(user);

View File

@@ -74,10 +74,13 @@ public class AuthenticateResponse_Tests
LastName = "test",
Email = "test",
PasswordHash = "test",
PasswordSalt = "test",
Password = "test",
Role = new DatabaseSqlServer.Role()
{
Name = "test"
}
},
IsTestUser = true
};
AuthenticatedUser data = new AuthenticatedUser(user);
var authenticateResponse = new AuthenticateResponse(200, "This is a test message", data);