From ecd74fbe5d3ace51a57b0f6f756538aba8123727 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 30 Jul 2006 23:08:10 +0000 Subject: avoid message if mailing password or registering --- IkiWiki/CGI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 5e54c5674..fc5dfc2ef 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -114,7 +114,7 @@ sub cgi_signin ($$) { #{{{ $form->field(name => "password", type => "password", required => 0); $form->field(name => "confirm_password", type => "password", required => 0); $form->field(name => "email", required => 0); - if ($q->param("do") ne "signin") { + if ($q->param("do") ne "signin" && !$form->submitted) { $form->text("You need to log in first."); } -- cgit v1.2.3