]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/emailauth.pm
removed
[git.ikiwiki.info.git] / IkiWiki / Plugin / emailauth.pm
index aa067238fb77e81cbcf3ab1f7eab5b39fc9de7c6..a589199d3d85a2cac98800657224f778734e3500 100644 (file)
@@ -78,12 +78,14 @@ sub email_auth ($$$$) {
        
        eval q{use Mail::Sendmail};
        error($@) if $@;
+       my $shorturl=$config{url};
+       $shorturl=~s/^https?:\/\///i;
        sendmail(
                To => $email,
                From => "$config{wikiname} admin <".
                        (defined $config{adminemail} ? $config{adminemail} : "")
                        .">",
-               Subject => "$config{wikiname} login",
+               Subject => "$config{wikiname} login | $shorturl",
                Message => $template->output,
        ) or error(gettext("Failed to send mail"));