Exemple #1
0
 private static function validateCaptcha($context, GWF_Form $form, $validator, $key)
 {
     if (GWF_Session::getOrDefault('php_captcha', false) !== strtoupper($form->getVar($key))) {
         $form->onNewCaptcha();
         return GWF_HTML::lang('ERR_WRONG_CAPTCHA');
     }
     //		GWF_Session::remove('php_captcha');
     $form->onSolvedCaptcha();
     return false;
 }