chiark / gitweb /
Testing: rename dump to test-data
[cgi-auth-flexible.git] / test.cgi
index 0715861..04995c7 100755 (executable)
--- a/test.cgi
+++ b/test.cgi
@@ -10,13 +10,17 @@ use Data::Dumper;
 #use Carp::Always;
 $SIG{__DIE__} = sub { Carp::confess(@_) };
 
-my $dump = "$ENV{'CAHTEST_HOME'}/dump";
+my $dump = "$ENV{'CAHTEST_HOME'}/test-data";
 
 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,
+    srcdump_filter_cwd => 0,
 );
 
 END { $verifier->disconnect() if $verifier; }