Updated the PasswordManager to check for a min password length as that might be a tad important.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user