aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/passwordauth.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-29 21:57:25 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-29 21:57:25 +0000
commit93c6d2c340b9529eedf611d6e753030cc9c29ae9 (patch)
tree85d7b2b4fa5082fb804fdcdb2cf6958b3ac9b0ac /IkiWiki/Plugin/passwordauth.pm
parente97b63c95aad40de6498bd480a38d7a57764ad53 (diff)
downloadikiwiki-93c6d2c340b9529eedf611d6e753030cc9c29ae9.tar
ikiwiki-93c6d2c340b9529eedf611d6e753030cc9c29ae9.tar.gz
* Use fieldsets in the preferences form to group related options together.
Especially cleans up the ordering of the admin's preferences form.
Diffstat (limited to 'IkiWiki/Plugin/passwordauth.pm')
-rw-r--r--IkiWiki/Plugin/passwordauth.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/passwordauth.pm b/IkiWiki/Plugin/passwordauth.pm
index 131b3a43e..baa84c858 100644
--- a/IkiWiki/Plugin/passwordauth.pm
+++ b/IkiWiki/Plugin/passwordauth.pm
@@ -108,10 +108,13 @@ sub formbuilder_setup (@) { #{{{
}
}
elsif ($form->title eq "preferences") {
- $form->field(name => "name", disabled => 1, value =>
- $session->param("name"), force => 1);
- $form->field(name => "password", type => "password");
+ $form->field(name => "name", disabled => 1,
+ value => $session->param("name"), force => 1,
+ fieldset => "login");
+ $form->field(name => "password", type => "password",
+ fieldset => "login");
$form->field(name => "confirm_password", type => "password",
+ fieldset => "login",
validate => sub {
shift eq $form->field("password");
});