chiark / gitweb /
Testing: test.cgi: Break out @verifier_params
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 27 Oct 2015 16:48:16 +0000 (16:48 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 27 Oct 2015 17:15:43 +0000 (17:15 +0000)
No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
test.cgi

index 04995c7..9d6a7e2 100755 (executable)
--- a/test.cgi
+++ b/test.cgi
@@ -12,7 +12,7 @@ $SIG{__DIE__} = sub { Carp::confess(@_) };
 
 my $dump = "$ENV{'CAHTEST_HOME'}/test-data";
 
-my $verifier = CGI::Auth::Flexible->new_verifier(
+my @verifier_params =(
     username_password_error => sub {
         my ($c,$r,$u,$p)=@_;
         return $p eq 'sesame' ? undef : 'wrong password'
@@ -21,7 +21,9 @@ my $verifier = CGI::Auth::Flexible->new_verifier(
     promise_check_mutate => 1,
     dir => $dump,
     srcdump_filter_cwd => 0,
-);
+    );
+
+my $verifier = CGI::Auth::Flexible->new_verifier(@verifier_params);
 
 END { $verifier->disconnect() if $verifier; }