Updated the PasswordManager to check for a min password length as that might be a tad important.

This commit is contained in:
2021-01-12 21:28:11 -06:00
parent 4e25410d30
commit 4721a70ea7
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ namespace SecureCore.Services
using(var connection = new SqlConnection(ConnectionString))
{
using(var command = new SqlCommand("SELECT [Password Hash], [Salt Hash] FROM Login WHERE [User Key] = @UserId", connection))
using(var command = new SqlCommand("SELECT [Password Hash], [Salt] FROM Login WHERE [User Key] = @UserId", connection))
{
command.Parameters.AddWithValue("UserId", userId);
@@ -47,7 +47,7 @@ namespace SecureCore.Services
reader.Read();
return (reader["Password Hash"].ToString(), reader["Salt Hash"].ToString());
return (reader["Password Hash"].ToString(), reader["Salt"].ToString());
}
}
}