From fe55c173963f0d26246f3afc81b9f8efe149a4a6 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 25 Apr 2016 18:05:03 +0200 Subject: [PATCH] Fixed third party login --- wcfsetup/install/files/lib/form/RegisterForm.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.20.1