Commit df900de2 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

fix () : prevent error while changing password on the first connection

parent 504a526a
Pipeline #8224 failed with stage
......@@ -184,8 +184,13 @@ class userAuthentication
{
$tempToken = \laabs::getToken('TEMP-AUTH');
if ($this->sdoFactory->exists('auth/account', array('accountName' => $userName))) {
$userAccount = $this->sdoFactory->read('auth/account', array('accountName' => $userName));
} else {
return false;
}
if ($this->sdoFactory->exists('auth/account', array('accountName' => $userName))
&& $userAccount = $this->sdoFactory->read('auth/account', array('accountName' => $userName))
&& !is_null($tempToken)
&& $tempToken->accountId == $userAccount->accountId) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment