WCF::getSession()->register('__facebookData', $userData);
// we assume that bots won't register on facebook first
- // todo: captcha
- WCF::getSession()->register('recaptchaDone', true);
+ // thus no need for a captcha
+ if (REGISTER_CAPTCHA_TYPE) {
+ WCF::getSession()->register('noRegistrationCaptcha', true);
+ }
WCF::getSession()->update();
HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Register'));
WCF::getSession()->register('__githubToken', $data['access_token']);
// we assume that bots won't register on github first
- // todo: captcha
- WCF::getSession()->register('recaptchaDone', true);
+ // thus no need for a captcha
+ if (REGISTER_CAPTCHA_TYPE) {
+ WCF::getSession()->register('noRegistrationCaptcha', true);
+ }
WCF::getSession()->update();
HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Register'));
WCF::getSession()->register('__googleData', $userData);
// we assume that bots won't register on facebook first
- // todo: captcha
- WCF::getSession()->register('recaptchaDone', true);
+ // thus no need for a captcha
+ if (REGISTER_CAPTCHA_TYPE) {
+ WCF::getSession()->register('noRegistrationCaptcha', true);
+ }
WCF::getSession()->update();
HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Register'));
WCF::getSession()->register('__twitterData', $data);
// we assume that bots won't register on twitter first
- // todo: captcha
- WCF::getSession()->register('recaptchaDone', true);
+ // thus no need for a captcha
+ if (REGISTER_CAPTCHA_TYPE) {
+ WCF::getSession()->register('noRegistrationCaptcha', true);
+ }
WCF::getSession()->update();
HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Register'));
if (!$this->captchaObjectType->getProcessor()->isAvailable()) {
$this->captchaObjectType = null;
}
+
+ if (WCF::getSession()->getVar('noRegistrationCaptcha')) {
+ $this->captchaObjectType = null;
+
+ WCF::getSession()->unregister('noRegistrationCaptcha');
+ }
}
parent::readData();