Authen::QuizThe person's input is confirmed by setting the quiz | |
Download |
Authen::Quiz Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Masatoshi Mizuno
- Publisher web site:
- http://search.cpan.org/~lushe/
Authen::Quiz Tags
Authen::Quiz Description
The person's input is confirmed by setting the quiz Authen::Quiz is a Perl module that sets the quiz to the input of the form, and confirms whether it is artificially done.Recently, to take the place of it because there seemed to be a thing that the capture attestation is broken by improving the image analysis technology, it produced it.Moreover, I think that it can limit the user who can use the input form if the difficulty of the quiz is adjusted.SYNOPSIS use Authen::Quiz; my $q= Authen::Quiz->new( data_folder => '/path/to/authen_quiz', ## Passing that arranges data file. expire => 30, ## Expiration date of setting questions(amount). ); ## Setting of quiz. my $question= $q->question; ## When 'question' method is called, 'session_id' is set. ## This value is buried under the form, and it passes it to 'check_answer' method later. my $session_id= $q->session_id; # ## Check on input answer. my $session_id = $cgi->param('quiz_session') || return valid_error( ..... ); my $answer = $cgi->param('quiz_answer') || return valid_error( ..... ); if ($q->check_answer($session_id, $answer)) { # ... is success. } else { return valid_error( ..... ); } Requirements: · Perl
Authen::Quiz Related Software