From: Marcel Werk Date: Mon, 25 Apr 2016 16:05:03 +0000 (+0200) Subject: Fixed third party login X-Git-Tag: 3.0.0_Beta_1~1814 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe55c173963f0d26246f3afc81b9f8efe149a4a6;p=GitHub%2FWoltLab%2FWCF.git Fixed third party login --- diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index 4ebe9063ac..511daba810 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -186,6 +186,15 @@ 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