diff --git a/Host/Login.aspx.cs b/Host/Login.aspx.cs index ce149d494..ab90666ab 100644 --- a/Host/Login.aspx.cs +++ b/Host/Login.aspx.cs @@ -20,10 +20,9 @@ namespace Host var username = Request.Form["username"]; var password = Request.Form["password"]; - var service = new UserServiceImp(); + var user = DAOFactory.UserDAO.FindUserByLoginName(username); - var result_valid = service.IsUserValid(username, password); - var result = result_valid == BS.Shared.UserValidationResult.UserValid; + var result = user.BCryptPassword == password; if (!result) { diff --git a/Service/ServiceImplementations/AccountingServiceImp.cs b/Service/ServiceImplementations/AccountingServiceImp.cs index 821336832..34bef6e95 100644 --- a/Service/ServiceImplementations/AccountingServiceImp.cs +++ b/Service/ServiceImplementations/AccountingServiceImp.cs @@ -755,7 +755,7 @@ namespace BeWo.Service.ServiceImplementations if (!updateables.Any()) return dcs; - var isUpToDate = SendApp8GetStatusRequest(updateables, user.LoginName, user.RC2EncryptedHash); + var isUpToDate = SendApp8GetStatusRequest(updateables, user.LoginName, user.BCryptPassword); if (isUpToDate) return dcs;