invalidate captcha solution when the password has been sent

This commit is contained in:
Christian Weiske 2010-07-09 21:58:51 +02:00
parent bf9b3f98a7
commit e0ece297a3

View File

@ -89,7 +89,7 @@ $email->addRule(
);
$form->addElement(
$captcha = $form->addElement(
'sc-captcha', 'captcha',
array(
'size' => 40
@ -156,6 +156,7 @@ if ($form->validate()) {
T_('New password generated and sent to %s'),
$arValues['email']
);
$captcha->clearCaptchaSession();
}
} else {
HTML_QuickForm2_Renderer::register(