Merge
This commit is contained in:
commit
1884594951
5 changed files with 30 additions and 17 deletions
|
@ -101,7 +101,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
|
||||
// compare user passwords
|
||||
if (CryptoUtils.SHA1(user.Password) == password)
|
||||
if ((CryptoUtils.SHA1(user.Password) == password) || (user.Password == password))
|
||||
{
|
||||
switch (user.OneTimePasswordState)
|
||||
{
|
||||
|
@ -172,7 +172,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
|
||||
// compare user passwords
|
||||
if (CryptoUtils.SHA1(user.Password) == password)
|
||||
if ((CryptoUtils.SHA1(user.Password) == password) || (user.Password == password))
|
||||
return new UserInfo(user);
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue