]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/signinedit.pm
Merge branch 'master' of git://git.ikiwiki.info
[git.ikiwiki.info.git] / IkiWiki / Plugin / signinedit.pm
index 032a0034c0c4e3354ea8274a6259fb0478ad949e..31160c02ffb581ad28da533e42737db8761295fe 100644 (file)
@@ -16,6 +16,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => 0,
+                       section => "auth",
                },
 }
 
@@ -29,6 +30,7 @@ sub canedit ($$$) {
        # signin can override this.
         if (! defined $session->param("name") ||
             ! IkiWiki::userinfo_get($session->param("name"), "regdate")) {
+               return "" unless exists $IkiWiki::hooks{auth};
                return sub { IkiWiki::needsignin($cgi, $session) };
        }
        else {