From eb957c335603c404e9a4817ee2014322ea716dba Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 9 Sep 2008 18:23:39 +0200 Subject: [PATCH] Girocco::Project: Allow empty project password --- Girocco/Project.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Girocco/Project.pm b/Girocco/Project.pm index edd0ec0..5165bca 100644 --- a/Girocco/Project.pm +++ b/Girocco/Project.pm @@ -333,7 +333,7 @@ sub authenticate { my ($gcgi) = @_; $self->{ccrypt} or die "Can't authenticate against a project with no password"; - $self->{cpwd} or $gcgi->err("No password entered."); + $self->{cpwd} ||= ''; unless ($self->{ccrypt} eq crypt($self->{cpwd}, $self->{ccrypt})) { $gcgi->err("Your admin password does not match!"); return 0; -- 2.11.4.GIT