2 package IkiWiki::Plugin::signinedit;
9 hook(type => "getsetup", id => "signinedit", call => \&getsetup);
10 hook(type => "canedit", id => "signinedit", call => \&canedit,
27 # Have the user sign in, if they are not already. This is why the
28 # hook runs last, so that any hooks that don't need the user to
29 # signin can override this.
30 if (! defined $session->param("name") ||
31 ! IkiWiki::userinfo_get($session->param("name"), "regdate")) {
32 return "" unless exists $IkiWiki::hooks{auth};
33 return sub { IkiWiki::needsignin($cgi, $session) };