Example #1
0
 /**
  * Verify a previously created Captcha phrase.
  * @param @passedValue string containing the phrase recieved from the user.
  * @return bool True if the value matches the captcha phrase, false otherwise.
  */
 public static function verify($passedValue)
 {
     $realv = Session::pull("CAPTCHA_VALUE");
     if (strtolower($passedValue) === strtolower($realv)) {
         return true;
     }
     return false;
 }