mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add check if password exist in login, to show correct error message if account isn't activated yet
This commit is contained in:
parent
cd0b7965fc
commit
2d78b30f62
@ -653,7 +653,7 @@ UserStates Session::loadUser(const std::string& email, const std::string& passwo
|
|||||||
//mSessionUser = new User(email.data());
|
//mSessionUser = new User(email.data());
|
||||||
}
|
}
|
||||||
if (mSessionUser->getUserState() >= USER_LOADED_FROM_DB) {
|
if (mSessionUser->getUserState() >= USER_LOADED_FROM_DB) {
|
||||||
if (!mSessionUser->validatePwd(password, this)) {
|
if (mNewUser->getModel()->getPasswordHashed() && !mSessionUser->validatePwd(password, this)) {
|
||||||
unlock();
|
unlock();
|
||||||
return USER_PASSWORD_INCORRECT;
|
return USER_PASSWORD_INCORRECT;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user