/** * Validate captcha code * * @param $code * @return bool */ public function validate($code) { return CakeSecurimage::staticValidate($code); }
public function validateCaptcha(Model $model, $check) { $value = array_values($check); $value = $value[0]; return CakeSecurimage::staticValidate($value); }