From: Jess Robinson Date: Mon, 9 Jul 2012 11:05:13 +0000 (+0000) Subject: Add settings for register email configuration X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b13cb1e841e02309eb0a4dbe7bf05dc957761d2b;p=scpubgit%2Fstemmaweb.git Add settings for register email configuration --- diff --git a/lib/stemmaweb.pm b/lib/stemmaweb.pm index bbe8d81..1f06638 100644 --- a/lib/stemmaweb.pm +++ b/lib/stemmaweb.pm @@ -100,15 +100,18 @@ __PACKAGE__->config( login_id_field => 'username', login_db_field => 'username', action_after_login => '/index', - action_after_register => '/index', - register_email_from => '"MyApp" ', - register_email_subject => 'Confirm registration to stemmaweb', - register_email_template_plain => 'register-plain.tt', + action_after_register => '/index', + register_email_from => '"MyApp" ', + register_email_subject => 'Registration to stemmaweb', + register_email_template_plain => 'register-plain.tt', realm => 'default', login_fields => { openid => [qw/openid_identifier/], default => [qw/username password remember/], }, }, + 'View::Email::Template' => { + stash_key => 'email_template', + }, ); # Start the application