Always load IkiWiki::CGI so its cgi_signin is present, so we replace it.
#
# When other auth hooks are registered, give the selector
# a reference to the normal signin form.
#
# When other auth hooks are registered, give the selector
# a reference to the normal signin form.
my $real_cgi_signin;
if (keys %{$IkiWiki::hooks{auth}} > 1) {
my $real_cgi_signin;
if (keys %{$IkiWiki::hooks{auth}} > 1) {
$real_cgi_signin=\&IkiWiki::cgi_signin;
}
inject(name => "IkiWiki::cgi_signin", call => sub ($$) {
$real_cgi_signin=\&IkiWiki::cgi_signin;
}
inject(name => "IkiWiki::cgi_signin", call => sub ($$) {