Skip to content

Commit

Permalink
Resolve #915 due to #898
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze authored Feb 5, 2023
1 parent e2266d1 commit 7bdc6c6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ public static function getLoginCredentials() : array
}
} else if ($aRainLoop = RainLoop::getLoginCredentials($sUID, $config)) {
$sEmail = $aRainLoop[0];
$config->setUserValue($sUser, 'snappymail', 'snappymail-email', $sEmail);
$config->setUserValue($sUID, 'snappymail', 'snappymail-email', $sEmail);
if ($aRainLoop[1]) {
$config->setUserValue($sUser, 'snappymail', 'snappymail-password', static::encodePassword($aRainLoop[1], \md5($sEmail)));
$config->setUserValue($sUID, 'snappymail', 'snappymail-password', static::encodePassword($aRainLoop[1], \md5($sEmail)));
}
}
return [$sUID, $sEmail, $sPassword ?: ''];
Expand Down

0 comments on commit 7bdc6c6

Please sign in to comment.