You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.
As text based CAPTCHAs (riddle, math) are rendered without using the route or controller, the method update_response_session() is never called.
Adding this line before the return (string) in render() will fix this;
$this->update_response_session();
I guess making captcha.php like;
public function render($html = TRUE);
{
if ($html)
$this->update_response_session();
}
and (eg riddle.php) like;
public function render($html = TRUE)
parent::render($html);
return $this->riddle;
}
and taking update_response_session() out of the controller would do the trick.
A bit ugly though. Maybe HMVC is the answer.
Note: the if ($html) above stops update_response_session() being called twice.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As text based CAPTCHAs (riddle, math) are rendered without using the route or controller, the method update_response_session() is never called.
Adding this line before the return (string) in render() will fix this;
I guess making captcha.php like;
and (eg riddle.php) like;
and taking update_response_session() out of the controller would do the trick.
A bit ugly though. Maybe HMVC is the answer.
Note: the if ($html) above stops update_response_session() being called twice.
The text was updated successfully, but these errors were encountered: