RE: [Catalyst] Catalyst Roles With ACL

2012-08-14 Thread Blaine Everingham
" );} $c->res->redirect( $c->uri_for('/') ); } else { # Show Login Form $c->stash('error' => "Sorry your login failed."); $c->res->redirect( $c->uri_for('/login'

Re: [Catalyst] Catalyst Roles With ACL

2012-08-14 Thread Tomas Doran
On 14 Aug 2012, at 18:12, Blaine Everingham wrote: > > When I try and run my program I get > Failed to load user data. You passed [ARRAY(0x39a8964)] to authenticate() > but your user source (MyApp::User) only has these columns: > [id,alias,name_first,name_last,email] Check your authenticate

[Catalyst] Catalyst Roles With ACL

2012-08-14 Thread Blaine Everingham
Hi, I am trying to get role based authorization going in my catalyst app. However, I'm encountering difficultly on what should be an easy task. My database basically has four tables for users User - Main User data with foren keys to User Account(has many) and UserToRole (has many) UserAccount