Add settings for register email configuration
Jess Robinson [Mon, 9 Jul 2012 11:05:13 +0000 (11:05 +0000)]
stemmaweb/lib/stemmaweb.pm

index bbe8d81..1f06638 100644 (file)
@@ -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" <somebody@example.com>',
-       register_email_subject => 'Confirm registration to stemmaweb',
-       register_email_template_plain => 'register-plain.tt',
+        action_after_register => '/index', 
+        register_email_from  => '"MyApp" <somebody@example.com>',
+        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