]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/passwordauth.pm
* Group passwordauth fields with a fieldset as well. Add a new
[ikiwiki.git] / IkiWiki / Plugin / passwordauth.pm
index d1a965dc889c144f62a01bcba826ae192ec37b10..dac649bc86c81f38a8e6ae1386c880449524bb15 100644 (file)
@@ -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");