X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fchatty;a=blobdiff_plain;f=lib%2FChatty.pm;fp=lib%2FChatty.pm;h=72353a7ff8c1ce3e0397d13640a6dd4258472993;hp=0de57fd7182bb7a0a1a9d992224bc7510692fd71;hb=9b343fd3d0f46473e2f5804ac09caeaed95e4283;hpb=20e8ae6917f72f3c381ad9d3aca656a99bd4cd7f diff --git a/lib/Chatty.pm b/lib/Chatty.pm index 0de57fd..72353a7 100644 --- a/lib/Chatty.pm +++ b/lib/Chatty.pm @@ -21,6 +21,10 @@ use Catalyst qw/ ConfigLoader StackTrace Static::Simple + Authentication + Session + Session::Store::FastMmap + Session::State::Cookie /; extends 'Catalyst'; @@ -42,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();