From eb17df28d9fbf4e2d2bde168457743ee4a8db065 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Wed, 3 Jun 2020 16:58:55 +0200 Subject: [PATCH] Fix bogus email change condition --- wcfsetup/install/files/lib/form/AccountManagementForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/form/AccountManagementForm.class.php b/wcfsetup/install/files/lib/form/AccountManagementForm.class.php index 9882aa5b0b..286a59badf 100644 --- a/wcfsetup/install/files/lib/form/AccountManagementForm.class.php +++ b/wcfsetup/install/files/lib/form/AccountManagementForm.class.php @@ -338,7 +338,7 @@ class AccountManagementForm extends AbstractForm { // email if (WCF::getSession()->getPermission('user.profile.canChangeEmail') && $this->email != WCF::getUser()->email && $this->email != WCF::getUser()->newEmail) { - if (!(REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_USER) && mb_strtolower($this->email) == mb_strtolower(WCF::getUser()->email)) { + if (!(REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_USER)) { // update email $updateParameters['email'] = $this->email; $success[] = 'wcf.user.changeEmail.success'; -- 2.20.1