]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/passwordauth.pm
switch to 1 parameter version of file_pruned
[ikiwiki.git] / IkiWiki / Plugin / passwordauth.pm
index b3a798055fea9c4315c52be3e8c4794dd17a9e56..4848b47bbac53726aeefde96d41beb21e9949d45 100644 (file)
@@ -19,6 +19,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => 0,
+                       section => "auth",
                },
                account_creation_password => {
                        type => "string",
@@ -223,7 +224,7 @@ sub formbuilder_setup (@) {
                                        shift eq $form->field("password");
                                });
                        
-                       my $userpage=$config{userdir} ? $config{userdir}."/".$user : $user;
+                       my $userpage=IkiWiki::userpage($user);
                        if (exists $pagesources{$userpage}) {
                                $form->text(gettext("Your user page: ").
                                        htmllink("", "", $userpage,