This commit is contained in:
Virtuworks 2015-05-20 11:52:05 -04:00
commit 1884594951
5 changed files with 30 additions and 17 deletions

View file

@ -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;