X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstemmaweb.pm;h=4a8f77a138844c63a0227e8ca428584bce759aa1;hb=db23422016121c37eda553a795d409093f401b2e;hp=1f06638fefcaa99d28953c27593430fda7e5a13d;hpb=b13cb1e841e02309eb0a4dbe7bf05dc957761d2b;p=scpubgit%2Fstemmaweb.git diff --git a/lib/stemmaweb.pm b/lib/stemmaweb.pm index 1f06638..4a8f77a 100644 --- a/lib/stemmaweb.pm +++ b/lib/stemmaweb.pm @@ -23,7 +23,6 @@ use Search::GIN::Extract::Multiplex; use Catalyst qw/ ConfigLoader Static::Simple - Unicode::Encoding Authentication Session Session::Store::File @@ -49,6 +48,8 @@ __PACKAGE__->config( name => 'stemmaweb', # Disable deprecated behavior needed by old applications disable_component_resolution_regex_fallback => 1, + # Set Unicode as the default + encoding => 'UTF-8', default_view => 'TT', 'View::JSON' => { expose_stash => 'result', @@ -99,9 +100,10 @@ __PACKAGE__->config( model => 'User', login_id_field => 'username', login_db_field => 'username', - action_after_login => '/index', - action_after_register => '/index', - register_email_from => '"MyApp" ', + action_after_login => '/users/success', + action_after_register => '/users/success', + enable_sending_register_email => 0, + register_email_from => '"Stemmaweb" ', register_email_subject => 'Registration to stemmaweb', register_email_template_plain => 'register-plain.tt', realm => 'default', @@ -112,6 +114,11 @@ __PACKAGE__->config( 'View::Email::Template' => { stash_key => 'email_template', }, + + recaptcha => { + pub_key => '6LfR19MSAAAAACy2meHvLfZGRn3PM2rRYIAfh665', + priv_key => '6LfR19MSAAAAAMlQb8BdyecWNRE1bAL2YSgz2sah', + }, ); # Start the application