Fix for import tool

This commit is contained in:
alexY2004 2015-05-20 18:18:52 +03:00
parent b815d95310
commit b2ce0f0ec8

View file

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