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