From b2ce0f0ec879e3e0833869b1343e6e2cdf23a6b5 Mon Sep 17 00:00:00 2001 From: alexY2004 Date: Wed, 20 May 2015 18:18:52 +0300 Subject: [PATCH] Fix for import tool --- .../Users/UserController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Users/UserController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Users/UserController.cs index 7c5b85f3..46aa2207 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Users/UserController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Users/UserController.cs @@ -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;