diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-05-13 23:23:53 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-05-13 23:24:07 -0400 |
commit | 497513e737a92d2115f5d2a16610561b8a1dffdc (patch) | |
tree | 1151a46ac99333a0433d2b77cf5cd03cc676c014 /IkiWiki.pm | |
parent | 22339188e7fac70362f024402ae873f51a36d578 (diff) | |
download | ikiwiki-497513e737a92d2115f5d2a16610561b8a1dffdc.tar ikiwiki-497513e737a92d2115f5d2a16610561b8a1dffdc.tar.gz |
avoid showing password prefs for emailauth user
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index f414996db..53eb8235b 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -165,7 +165,7 @@ sub getsetup () { default_plugins => { type => "internal", default => [qw{mdwn link inline meta htmlscrubber passwordauth - openid signinedit lockedit conditional + openid emailauth signinedit lockedit conditional recentchanges parentlinks editpage templatebody}], description => "plugins to enable by default", @@ -1464,6 +1464,14 @@ sub openiduser ($) { return; } +sub emailuser ($) { + my $user=shift; + if (defined $user && $user =~ m/(.+)@/) { + return $1; + } + return; +} + sub htmlize ($$$$) { my $page=shift; my $destpage=shift; |