X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fchatty;a=blobdiff_plain;f=lib%2FChatty.pm;h=86585269fcadc5748d6a843c745a8a6b2129ea0e;hp=0de57fd7182bb7a0a1a9d992224bc7510692fd71;hb=ab11c0a9fd7ef63f13a4b78ef3ffde75db43f1a3;hpb=be80dc411dc33c6042f63671ae036b23eed33972 diff --git a/lib/Chatty.pm b/lib/Chatty.pm index 0de57fd..8658526 100644 --- a/lib/Chatty.pm +++ b/lib/Chatty.pm @@ -21,6 +21,11 @@ use Catalyst qw/ ConfigLoader StackTrace Static::Simple + Authentication + Session + Session::Store::FastMmap + Session::State::Cookie + Unicode::Encoding /; extends 'Catalyst'; @@ -37,9 +42,19 @@ our $VERSION = '0.01'; # local deployment. __PACKAGE__->config( - name => 'Chatty', - # Disable deprecated behavior needed by old applications - disable_component_resolution_regex_fallback => 1, + name => 'Chatty', + # Disable deprecated behavior needed by old applications + disable_component_resolution_regex_fallback => 1, + 'Plugin::Authentication' => { + default => { + class => 'SimpleDB', + user_model => 'DB::Account', + password_type => 'clear', + }, + }, + 'Plugin::Session' => { + flash_to_stash => 1 + } ); # Start the application