allow do=setup to log a user in if necessary
authorJoey Hess <joey@kitenet.net>
Mon, 3 May 2010 17:46:52 +0000 (13:46 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 3 May 2010 17:46:52 +0000 (13:46 -0400)
IkiWiki/Plugin/websetup.pm

index 3de8f4bf3dfad8716848f88b6cd3baa676aaa367..cb6a7e412b601a1dfefc8b0403d7b3f658da1da5 100644 (file)
@@ -265,6 +265,8 @@ sub showform ($$) {
        my $cgi=shift;
        my $session=shift;
 
+       IkiWiki::needsignin($cgi, $session);
+
        if (! defined $session->param("name") || 
            ! IkiWiki::is_admin($session->param("name"))) {
                error(gettext("you are not logged in as an admin"));