chiark / gitweb /
automatic agpl compliance: rename things "licence" rather than "agpl", handle in...
[cgi-auth-flexible.git] / test.cgi
index 0715861..92fb7ee 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(
-    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,