From f88a49f83513b788b799aa67e852ec6291167d76 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Wed, 3 Oct 2012 19:48:52 +0200 Subject: Fix session user matching. --- www/login.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/login.pl') diff --git a/www/login.pl b/www/login.pl index 9e0467e..852f57c 100755 --- a/www/login.pl +++ b/www/login.pl @@ -61,7 +61,7 @@ while (my $cgi = new CGI::Fast) { my $email = $cgi->param('email') or die "No email address provided"; my $password = $cgi->param('password') or die "Empty password"; - for my $user (email_users($email)) { + for my $user ([email_users($email)]) { #say STDERR "Trying user: $user"; if (check_password($user, $password)) { $session->param('user', $user); -- cgit v1.2.3