Skip to content

Commit b777bc3

Browse files
CarlSchwantony
authored andcommitted
Fix case sensitivity of email when saving settings
Otherwise we detect a email change all the time and since email are immutable in ldap this prevent updating other fields. Related: nextcloud/server#33813 Signed-off-by: Carl Schwan <[email protected]>
1 parent 21d59bb commit b777bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/settings/lib/Controller/UsersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ protected function saveUserSettings(IAccount $userAccount): void {
484484

485485
$oldEmailAddress = $userAccount->getUser()->getSystemEMailAddress();
486486
$oldEmailAddress = strtolower((string)$oldEmailAddress);
487-
if ($oldEmailAddress !== $userAccount->getProperty(IAccountManager::PROPERTY_EMAIL)->getValue()) {
487+
if ($oldEmailAddress !== strtolower($userAccount->getProperty(IAccountManager::PROPERTY_EMAIL)->getValue())) {
488488
// this is the only permission a backend provides and is also used
489489
// for the permission of setting a email address
490490
if (!$userAccount->getUser()->canChangeDisplayName()) {

0 commit comments

Comments
 (0)