Fixes configurations. (#128)
This commit is contained in:
parent
f336a56364
commit
cf8620d558
12 changed files with 25 additions and 21 deletions
|
|
@ -315,7 +315,7 @@ namespace Server.Accounting
|
|||
public void SetPassword(string plainPassword)
|
||||
{
|
||||
Password = AccountSecurity.CurrentPasswordProtection.EncryptPassword(plainPassword);
|
||||
m_PasswordAlgorithm = AccountSecurity.AlgorithmName;
|
||||
m_PasswordAlgorithm = AccountSecurity.CurrentAlgorithm;
|
||||
}
|
||||
|
||||
public bool CheckPassword(string plainPassword)
|
||||
|
|
@ -327,7 +327,7 @@ namespace Server.Accounting
|
|||
return false;
|
||||
|
||||
// Upgrade the password protection in case we change the algorithm
|
||||
if (m_PasswordAlgorithm != AccountSecurity.AlgorithmName)
|
||||
if (m_PasswordAlgorithm != AccountSecurity.CurrentAlgorithm)
|
||||
SetPassword(plainPassword);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue