]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki.pm
avoid showing password prefs for emailauth user
[git.ikiwiki.info.git] / IkiWiki.pm
index f414996db377d12a27dc7c408a766e6302b9cf02..53eb8235bf85a6f7a419cec8206c397da10fdf06 100644 (file)
@@ -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;