clear captcha session after successful registration
This commit is contained in:
parent
e0ece297a3
commit
ae8cd8ffc3
@ -101,7 +101,7 @@ $email->addRule(
|
||||
array($userservice, 'isValidEmail')
|
||||
);
|
||||
|
||||
$form->addElement(
|
||||
$captcha = $form->addElement(
|
||||
'sc-captcha', 'captcha',
|
||||
array(
|
||||
'size' => 40
|
||||
@ -127,6 +127,7 @@ if ($form->validate()) {
|
||||
$arValues['username'], $arValues['password'], $arValues['email']
|
||||
);
|
||||
if ($bOk) {
|
||||
$captcha->clearCaptchaSession();
|
||||
header('Location: '. createURL('bookmarks', $arValues['username']));
|
||||
exit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user