Fix bogus email change condition
authorjoshuaruesweg <ruesweg@woltlab.com>
Wed, 3 Jun 2020 14:58:55 +0000 (16:58 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Wed, 3 Jun 2020 14:58:55 +0000 (16:58 +0200)
wcfsetup/install/files/lib/form/AccountManagementForm.class.php

index 9882aa5b0b29e6240a66d8af6c2ae877efb99600..286a59badf35007aa7573af7ce853a813ecca1d7 100644 (file)
@@ -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';