Fixed email comparison on user edit
authorSascha Greuel <sascha@softcreatr.de>
Thu, 15 Oct 2015 17:15:53 +0000 (19:15 +0200)
committerSascha Greuel <sascha@softcreatr.de>
Thu, 15 Oct 2015 17:15:53 +0000 (19:15 +0200)
wcfsetup/install/files/lib/acp/form/UserEditForm.class.php

index 9bdc82cf6a82bb305d227372929f9a87d8794eda..8d5c7ea756e1597a872bc920007f946da06d8eac 100755 (executable)
@@ -386,6 +386,11 @@ class UserEditForm extends UserAddForm {
         * @see \wcf\acp\form\UserAddForm::validateEmail()
         */
        protected function validateEmail($email, $confirmEmail) {
+               // check confirm input
+               if (mb_strtolower($email) != mb_strtolower($confirmEmail)) {
+                       throw new UserInputException('confirmEmail', 'notEqual');
+               }
+               
                if (mb_strtolower($this->user->email) != mb_strtolower($email)) {
                        parent::validateEmail($email, $this->confirmEmail);
                }