From: joshuaruesweg Date: Wed, 3 Jun 2020 14:58:55 +0000 (+0200) Subject: Fix bogus email change condition X-Git-Tag: 5.3.0_Alpha_1~182^2~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eb17df28d9fbf4e2d2bde168457743ee4a8db065;p=GitHub%2FWoltLab%2FWCF.git Fix bogus email change condition --- 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';