From 7bdc6c683b3b2c1c179f738bb766cc4aea5cfc7c Mon Sep 17 00:00:00 2001 From: the-djmaze <3752035+the-djmaze@users.noreply.github.com> Date: Sun, 5 Feb 2023 14:30:53 +0100 Subject: [PATCH] Resolve #915 due to #898 --- .../nextcloud/snappymail/lib/Util/SnappyMailHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/nextcloud/snappymail/lib/Util/SnappyMailHelper.php b/integrations/nextcloud/snappymail/lib/Util/SnappyMailHelper.php index 61e0468277..de34d71e75 100644 --- a/integrations/nextcloud/snappymail/lib/Util/SnappyMailHelper.php +++ b/integrations/nextcloud/snappymail/lib/Util/SnappyMailHelper.php @@ -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 ?: ''];