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,