[Catalyst] Reaction Authentication

Guillermo Roditi groditi at gmail.com
Thu Jan 25 16:05:37 GMT 2007


it's new_password and confirm_new_password

with new_ prepended. that's why it's failing

On 1/25/07, Jonas Alves <jonas.alves at gmail.com> wrote:
>
>
> On 25/01/07, Jonas Alves <jonas.alves at gmail.com> wrote:
> >
> >
> >
> > On 25/01/07, Matt S Trout < dbix-class at trout.me.uk> wrote:
> > >
> > > On 25 Jan 2007, at 12:55, Jonas Alves wrote:
> > >
> > > >
> > > >
> > > > On 23/01/07, Guillermo Roditi <groditi at gmail.com > wrote: Hey, any
> > > > chance you could post the working code now that you fixed it.
> > > >
> > > > There is no actual real working code for reaction out there, and
> > > > it'd be nice to look at some real code..
> > > >
> > > > in other words, can I see your finished action and controller
> > > > classes so i can steal ideas and learn something?
> > > >
> > > > I am working on a reaction app that I will post to public SVN as
> > > > soon as it actually runs and keep it public as i develop it so
> > > > other people can get an idea aswell
> > > >
> > > > Hi Guillermo,
> > > > The application that I'm developing is for a client so I can't make
> > > > it public. But here are the pertinent action classes and
> > > > controllers that i have for now:
> > >
> > > Any particular reason you aren't using the existing SetPassword roles
> > > etc. ?
> >
> >
> > Ups, I guess i missed that one. I will update my code to use it. Thanks :D
>
> Hum, I can't make it work.
> This is what i have:
>
> package OliveiraDaSerra::Model::Action::CreateUser;
> use Reaction::Class;
>
> extends qw(
>
> Reaction::InterfaceModel::Action::DBIC::ResultSet::Create
>     Reaction::InterfaceModel::Action::User::SetPassword
> );
>
> does
> 'Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword';
>
> has 'email_address' => (isa => 'EmailAddress', is => 'rw',
> set_or_lazy_fail('email_address'));
> #has 'password'      => (isa => 'StrongPassword', is => 'rw');
> #has 'confirm_password' => (isa => 'StrongPassword', is => 'rw');
> has 'last_name'     => (isa => 'NonEmptySimpleStr', is => 'rw', predicate =>
> 'has_last_name');
> has 'first_name'    => (isa => 'NonEmptySimpleStr', is => 'rw',
> set_or_lazy_fail('first_name'));
> has 'username'      => (isa => 'NonEmptySimpleStr', is => 'rw',
> set_or_lazy_fail('username'));
>
> #override parameter_hashref => sub {
> #    my $hash = super();
> #    $hash->{password} = delete $hash->{new_password};
> #    delete $hash->{confirm_new_password};
> #    return $hash;
> #};
>
> 1;
>
> But i get this error: Can't locate object method "password" via package
> "DBIx::Class::ResultSet" at
> /usr/local/share/perl/5.8.7/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm
> line 8.
>
> What am i doing wrong?
>
> --
> Jonas
>
>
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo:
> http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
>
>



More information about the Catalyst mailing list