Invalidate captcha after it is used
This commit is contained in:
parent
2455cec7ac
commit
728ba61450
|
|
@ -85,6 +85,9 @@ class PasswordResetValidator extends BaseValidator
|
|||
if (! $result) {
|
||||
$errors['captcha'] = array(t('Invalid captcha'));
|
||||
}
|
||||
|
||||
// Invalidate captcha to avoid reuse.
|
||||
session_remove('captcha');
|
||||
}
|
||||
|
||||
return array($result, $errors);
|
||||
|
|
|
|||
Loading…
Reference in New Issue