]> Dogcows Code - chaz/chatty/blobdiff - lib/Chatty.pm
implemented session tracking and authentication
[chaz/chatty] / lib / Chatty.pm
index 0de57fd7182bb7a0a1a9d992224bc7510692fd71..72353a7ff8c1ce3e0397d13640a6dd4258472993 100644 (file)
@@ -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();
 
This page took 0.020008 seconds and 4 git commands to generate.