diff options
Diffstat (limited to 'app/Validator/PasswordResetValidator.php')
-rw-r--r-- | app/Validator/PasswordResetValidator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Validator/PasswordResetValidator.php b/app/Validator/PasswordResetValidator.php index e44e5206..0a2a3cd6 100644 --- a/app/Validator/PasswordResetValidator.php +++ b/app/Validator/PasswordResetValidator.php @@ -69,17 +69,17 @@ class PasswordResetValidator extends BaseValidator * * @access protected * @param array $values Form values - * @return boolean + * @return array */ protected function validateCaptcha(array $values) { $errors = array(); - if (! isset($this->sessionStorage->captcha)) { + if (! session_exists('captcha')) { $result = false; } else { $builder = new CaptchaBuilder; - $builder->setPhrase($this->sessionStorage->captcha); + $builder->setPhrase(session_get('captcha')); $result = $builder->testPhrase(isset($values['captcha']) ? $values['captcha'] : ''); if (! $result) { |