X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FChatty.pm;h=72353a7ff8c1ce3e0397d13640a6dd4258472993;hb=e872d7b7c02a1006e4481271d902ad1ca1e0b8d4;hp=ee849cc562506d645fa895806a53db72adf84935;hpb=fc706a11d0c10569ef2edf3aa76a330d43f64d26;p=chaz%2Fchatty diff --git a/lib/Chatty.pm b/lib/Chatty.pm index ee849cc..72353a7 100644 --- a/lib/Chatty.pm +++ b/lib/Chatty.pm @@ -19,7 +19,12 @@ use Catalyst::Runtime 5.80; use Catalyst qw/ -Debug ConfigLoader + StackTrace Static::Simple + Authentication + Session + Session::Store::FastMmap + Session::State::Cookie /; extends 'Catalyst'; @@ -41,6 +46,19 @@ __PACKAGE__->config( disable_component_resolution_regex_fallback => 1, ); +__PACKAGE__->config( + 'Plugin::Authentication' => { + default => { + class => 'SimpleDB', + user_model => 'DB::Account', + password_type => 'clear', + }, + }, + 'Plugin::Session' => { + flash_to_stash => 1 + } +); + # Start the application __PACKAGE__->setup();