]> sipb.mit.edu Git - ikiwiki.git/commitdiff
avoid message if mailing password or registering
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 30 Jul 2006 23:08:10 +0000 (23:08 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 30 Jul 2006 23:08:10 +0000 (23:08 +0000)
IkiWiki/CGI.pm

index 5e54c5674acb36b96de4960fefc8c05682d6a0d0..fc5dfc2efde84d552940dda35efc511ce92e87dd 100644 (file)
@@ -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.");
        }