Redesign Nextcloud OIDC login #1420

This commit is contained in:
the-djmaze 2024-02-06 20:31:50 +01:00
parent 66c9091b88
commit 59fea00a31
6 changed files with 20 additions and 6 deletions

View file

@ -152,6 +152,12 @@ class SnappyMailHelper
if ($sPassword) {
$sPassword = static::decodePassword($sPassword, $sUID);
}
if ($config->getAppValue('snappymail', 'snappymail-autologin-oidc', false) && $ocSession->get('is_oidc')) {
$sAccessToken = $ocSession->get('oidc_access_token');
if ($sAccessToken) {
$sPassword = $sAccessToken;
}
}
}
// If the user has set credentials for SnappyMail in their personal