From f1011f3336bca4bbe648a43c77b14494c1841ac9 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 17 Jan 2015 15:33:13 +0100 Subject: [PATCH] Fix captcha issue when using 3rd party registration --- wcfsetup/install/files/lib/form/RegisterForm.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index 790bd82d91..8fe5c90982 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -178,8 +178,6 @@ class RegisterForm extends UserAddForm { if (WCF::getSession()->getVar('noRegistrationCaptcha')) { $this->captchaObjectType = null; - - WCF::getSession()->unregister('noRegistrationCaptcha'); } } @@ -499,6 +497,10 @@ class RegisterForm extends UserAddForm { $this->captchaObjectType->getProcessor()->reset(); } + if (WCF::getSession()->getVar('noRegistrationCaptcha')) { + WCF::getSession()->unregister('noRegistrationCaptcha'); + } + // login user UserAuthenticationFactory::getInstance()->getUserAuthentication()->storeAccessData($user, $this->username, $this->password); WCF::getSession()->unregister('registrationRandomFieldNames'); -- 2.20.1