From bb651fbed3a1bf7d5bbbf9e7bd08a20a5676020c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Thu, 7 Feb 2019 20:19:37 +0100 Subject: [PATCH] * [FIX] Wrong behavior when creating new users from LDAP during login. Thanks to @javierlm for the feedback. Closes #1187 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- lib/SP/Services/User/UserPassService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/SP/Services/User/UserPassService.php b/lib/SP/Services/User/UserPassService.php index b8b19539..d84e5a3e 100644 --- a/lib/SP/Services/User/UserPassService.php +++ b/lib/SP/Services/User/UserPassService.php @@ -107,6 +107,7 @@ final class UserPassService extends Service $configHashMPass = $this->configService->getByParam('masterPwd'); if (empty($configHashMPass) + || $userLoginResponse === null || empty($userLoginResponse->getMPass()) || empty($userLoginResponse->getMKey()) ) {