aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-03 13:46:52 -0400
committerJoey Hess <joey@kitenet.net>2010-05-03 13:46:52 -0400
commit0fc32c8b2fa1fc23c0c2c654ad64de7f85a271d1 (patch)
tree3337cebed67afac1b84bcb57ad433baa67a303ae
parent2f22ee85e547dfe408fc0ec520aed6a6e137e136 (diff)
downloadikiwiki-0fc32c8b2fa1fc23c0c2c654ad64de7f85a271d1.tar
ikiwiki-0fc32c8b2fa1fc23c0c2c654ad64de7f85a271d1.tar.gz
allow do=setup to log a user in if necessary
-rw-r--r--IkiWiki/Plugin/websetup.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm
index 3de8f4bf3..cb6a7e412 100644
--- a/IkiWiki/Plugin/websetup.pm
+++ b/IkiWiki/Plugin/websetup.pm
@@ -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"));