clear captcha session after successful registration
This commit is contained in:
parent
e0ece297a3
commit
ae8cd8ffc3
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user