Fix for import tool
This commit is contained in:
parent
b815d95310
commit
b2ce0f0ec8
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
|
|
||||||
|
|
||||||
// compare user passwords
|
// compare user passwords
|
||||||
if (CryptoUtils.SHA1(user.Password) == password)
|
if ((CryptoUtils.SHA1(user.Password) == password) || (user.Password == password))
|
||||||
{
|
{
|
||||||
switch (user.OneTimePasswordState)
|
switch (user.OneTimePasswordState)
|
||||||
{
|
{
|
||||||
|
@ -172,7 +172,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
}
|
}
|
||||||
|
|
||||||
// compare user passwords
|
// compare user passwords
|
||||||
if (CryptoUtils.SHA1(user.Password) == password)
|
if ((CryptoUtils.SHA1(user.Password) == password) || (user.Password == password))
|
||||||
return new UserInfo(user);
|
return new UserInfo(user);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue