chiark
/
gitweb
/
~ian
/
cgi-auth-flexible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: wip
[cgi-auth-flexible.git]
/
test.cgi
diff --git
a/test.cgi
b/test.cgi
index 071586160634293bf78b1a171135bd12bb56c350..92fb7eea2c3fbae1db8b56a6dd34ef8da0f861f9 100755
(executable)
--- a/
test.cgi
+++ b/
test.cgi
@@
-13,7
+13,10
@@
$SIG{__DIE__} = sub { Carp::confess(@_) };
my $dump = "$ENV{'CAHTEST_HOME'}/dump";
my $verifier = CGI::Auth::Flexible->new_verifier(
my $dump = "$ENV{'CAHTEST_HOME'}/dump";
my $verifier = CGI::Auth::Flexible->new_verifier(
- username_password_ok => sub { my ($c,$r,$u,$p)=@_; return $p eq 'sesame'; },
+ username_password_error => sub {
+ my ($c,$r,$u,$p)=@_;
+ return $p eq 'sesame' ? undef : 'wrong password'
+ },
encrypted_only => 0,
promise_check_mutate => 1,
dir => $dump,
encrypted_only => 0,
promise_check_mutate => 1,
dir => $dump,