rebuild => 0,
section => "auth",
},
+ emailauth_sender => {
+ type => "string",
+ description => "email address to send emailauth mails as (default: adminemail)",
+ safe => 1,
+ rebuild => 0,
+ },
}
sub email_setup ($$) {
error($@) if $@;
my $shorturl=$config{url};
$shorturl=~s/^https?:\/\///i;
+ my $emailauth_sender=$config{emailauth_sender};
+ $emailauth_sender=$config{adminemail} unless defined $emailauth_sender;
sendmail(
To => $email,
From => "$config{wikiname} admin <".
- (defined $config{adminemail} ? $config{adminemail} : "")
+ (defined $emailauth_sender ? $emailauth_sender : "")
.">",
Subject => "$config{wikiname} login | $shorturl",
Message => $template->output,
* img test: Bail gracefully when ImageMagick is not present.
* meta: Fix [[!meta name=foo]] by closing the open quote.
+ [ Joey Hess ]
+ * emailauth: Added emailauth_sender config.
+
-- Simon McVittie <smcv@debian.org> Mon, 15 Jun 2015 18:13:23 +0100
ikiwiki (3.20150614) unstable; urgency=medium