Removed obsolete code
authorMarcel Werk <burntime@woltlab.com>
Sat, 23 Apr 2016 18:13:03 +0000 (20:13 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 23 Apr 2016 18:13:03 +0000 (20:13 +0200)
wcfsetup/install/files/lib/form/LoginForm.class.php
wcfsetup/install/files/lib/form/RegisterForm.class.php

index f7d27ffab14c1b2006246d2a26bb74c117c414ac..9a998ebd7c764a1e8e74749bbc8b7e2127001070 100644 (file)
@@ -36,19 +36,6 @@ class LoginForm extends \wcf\acp\form\LoginForm {
        public function readFormParameters() {
                parent::readFormParameters();
                
-               if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'register') {
-                       // if the username field is an email, save it as email for the registration
-                       if (UserUtil::isValidEmail($this->username)) {
-                               WCF::getSession()->register('__email', $this->username);
-                       }
-                       else {
-                               WCF::getSession()->register('__username', $this->username);
-                       }
-                       WCF::getSession()->update();
-                       HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Register'));
-                       exit;
-               }
-               
                $this->useCookies = 0;
                if (isset($_POST['useCookies'])) $this->useCookies = intval($_POST['useCookies']);
        }
index f9df10038f30190109d594bea153afb48b976cce..4ebe9063acf660892927b3b0f3c057ba1654f2a9 100644 (file)
@@ -186,15 +186,6 @@ class RegisterForm extends UserAddForm {
                if (empty($_POST)) {
                        $this->languageID = WCF::getLanguage()->languageID;
                        
-                       if (WCF::getSession()->getVar('__username')) {
-                               $this->username = WCF::getSession()->getVar('__username');
-                               WCF::getSession()->unregister('__username');
-                       }
-                       if (WCF::getSession()->getVar('__email')) {
-                               $this->email = $this->confirmEmail = WCF::getSession()->getVar('__email');
-                               WCF::getSession()->unregister('__email');
-                       }
-                       
                        WCF::getSession()->register('registrationStartTime', TIME_NOW);
                        
                        // generate random field names