my $real_cgi_signin;
my $otherform_label=gettext("Other");
if (keys %{$IkiWiki::hooks{auth}} > 1) {
- $real_cgi_signin=\&IkiWiki::cgi_signin;
# Special case to avoid labeling password auth as
# "Other" when it's the only auth plugin not
# integrated with the loginselector.
if (keys %h == 1 && exists $h{passwordauth}) {
$otherform_label=gettext("Password");
}
+ if (keys %h > 0) {
+ $real_cgi_signin=\&IkiWiki::cgi_signin;
+ }
}
inject(name => "IkiWiki::cgi_signin", call => sub ($$) {
login_selector($real_cgi_signin, $otherform_label, @_);