]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/passwordauth.pm
avoid showing password prefs for emailauth user
[git.ikiwiki.info.git] / IkiWiki / Plugin / passwordauth.pm
index 0cf2a26ea99380b6dd395824945bfcebd42c33b9..7c01bb3ffe11b0f7d36160e69de957efb659ffb7 100644 (file)
@@ -277,7 +277,7 @@ sub formbuilder_setup (@) {
        }
        elsif ($form->title eq "preferences") {
                my $user=$session->param("name");
-               if (! IkiWiki::openiduser($user)) {
+               if (! IkiWiki::openiduser($user) && ! IkiWiki::emailuser($user)) {
                        $form->field(name => "name", disabled => 1, 
                                value => $user, force => 1,
                                fieldset => "login");