clear captcha session after successful registration

This commit is contained in:
Christian Weiske 2010-07-09 22:00:16 +02:00
parent e0ece297a3
commit ae8cd8ffc3

View File

@ -101,7 +101,7 @@ $email->addRule(
array($userservice, 'isValidEmail') array($userservice, 'isValidEmail')
); );
$form->addElement( $captcha = $form->addElement(
'sc-captcha', 'captcha', 'sc-captcha', 'captcha',
array( array(
'size' => 40 'size' => 40
@ -127,6 +127,7 @@ if ($form->validate()) {
$arValues['username'], $arValues['password'], $arValues['email'] $arValues['username'], $arValues['password'], $arValues['email']
); );
if ($bOk) { if ($bOk) {
$captcha->clearCaptchaSession();
header('Location: '. createURL('bookmarks', $arValues['username'])); header('Location: '. createURL('bookmarks', $arValues['username']));
exit(); exit();
} }