summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-17 12:41:38 +0200
committerVincent Petry <vincent@nextcloud.com>2022-12-16 17:47:42 +0100
commit7f44a66296b7d8b21c1fec92339afb009fa8318a (patch)
treea4f193de8678e92b69d9f21aa636792ce7547f84 /apps/settings/lib
parent3b7cc31f64d7feae07b424f977f6963d12da012d (diff)
downloadnextcloud-server-7f44a66296b7d8b21c1fec92339afb009fa8318a.tar.gz
nextcloud-server-7f44a66296b7d8b21c1fec92339afb009fa8318a.zip
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: https://github.com/nextcloud/server/pull/33813 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/Controller/UsersController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php
index 7c543508496..217abf0e156 100644
--- a/apps/settings/lib/Controller/UsersController.php
+++ b/apps/settings/lib/Controller/UsersController.php
@@ -491,7 +491,7 @@ class UsersController extends Controller {
$oldEmailAddress = $userAccount->getUser()->getSystemEMailAddress();
$oldEmailAddress = strtolower((string)$oldEmailAddress);
- if ($oldEmailAddress !== $userAccount->getProperty(IAccountManager::PROPERTY_EMAIL)->getValue()) {
+ if ($oldEmailAddress !== strtolower($userAccount->getProperty(IAccountManager::PROPERTY_EMAIL)->getValue())) {
// this is the only permission a backend provides and is also used
// for the permission of setting a email address
if (!$userAccount->getUser()->canChangeDisplayName()) {