From 40365e1aee6740f12243b33e93962a6396ed27a6 Mon Sep 17 00:00:00 2001 From: joshtriplett Date: Mon, 30 Apr 2007 02:26:50 +0000 Subject: * Group passwordauth fields with a fieldset as well. Add a new passwordauth page to the basewiki describing password authentication; like openid, it uses conditional to check which forms of authentication the wiki allows. Add conditional cross- links between the openid and passwordauth pages, to help the user understand how they can log in. --- IkiWiki/Plugin/passwordauth.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/passwordauth.pm b/IkiWiki/Plugin/passwordauth.pm index d1a965dc8..dac649bc8 100644 --- a/IkiWiki/Plugin/passwordauth.pm +++ b/IkiWiki/Plugin/passwordauth.pm @@ -21,8 +21,12 @@ sub formbuilder_setup (@) { #{{{ my $cgi=$params{cgi}; if ($form->title eq "signin" || $form->title eq "register") { - $form->field(name => "name", required => 0, size => 50); - $form->field(name => "password", type => "password", required => 0); + my %fieldset = (); + if ($form->title eq "signin") { + $fieldset{"fieldset"} = gettext("Log in with")." ".htmllink("", "", "passwordauth", noimageinline => 1); + } + $form->field(name => "name", required => 0, size => 50, %fieldset); + $form->field(name => "password", type => "password", required => 0, %fieldset); if ($form->submitted eq "Register" || $form->submitted eq "Create Account") { $form->field(name => "confirm_password", type => "password"); -- cgit v1.2.3