<br><br><div><span class="gmail_quote">On 25/01/07, <b class="gmail_sendername">Jonas Alves</b> <<a href="mailto:jonas.alves@gmail.com">jonas.alves@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div><span class="q"><span class="gmail_quote">On 25/01/07, <b class="gmail_sendername">Matt S Trout</b> <<a href="mailto:dbix-class@trout.me.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
dbix-class@trout.me.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On 25 Jan 2007, at 12:55, Jonas Alves wrote:<br><br>><br>><br>> On 23/01/07, Guillermo Roditi <<a href="mailto:groditi@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">groditi@gmail.com
</a>> wrote: Hey, any<br>> chance you could post the working code now that you fixed it.
<br>><br>> There is no actual real working code for reaction out there, and<br>> it'd be nice to look at some real code..<br>><br>> in other words, can I see your finished action and controller<br>> classes so i can steal ideas and learn something?
<br>><br>> I am working on a reaction app that I will post to public SVN as<br>> soon as it actually runs and keep it public as i develop it so<br>> other people can get an idea aswell<br>><br>> Hi Guillermo,
<br>> The application that I'm developing is for a client so I can't make<br>> it public. But here are the pertinent action classes and<br>> controllers that i have for now:<br><br>Any particular reason you aren't using the existing SetPassword roles
<br>etc. ?</blockquote></span><div><br>Ups, I guess i missed that one. I will update my code to use it. Thanks :D</div></div></blockquote><div><br>Hum, I can't make it work.<br>This is what i have:<br><br>package OliveiraDaSerra::Model::Action::CreateUser;
<br>use Reaction::Class;<br><br>extends qw(<br> Reaction::InterfaceModel::Action::DBIC::ResultSet::Create<br> Reaction::InterfaceModel::Action::User::SetPassword<br>);<br><br>does 'Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword';
<br><br>has 'email_address' => (isa => 'EmailAddress', is => 'rw', set_or_lazy_fail('email_address'));<br>#has 'password' => (isa => 'StrongPassword', is => 'rw');
<br>#has 'confirm_password' => (isa => 'StrongPassword', is => 'rw');<br>has 'last_name' => (isa => 'NonEmptySimpleStr', is => 'rw', predicate => 'has_last_name');
<br>has 'first_name' => (isa => 'NonEmptySimpleStr', is => 'rw', set_or_lazy_fail('first_name'));<br>has 'username' => (isa => 'NonEmptySimpleStr', is => 'rw', set_or_lazy_fail('username'));
<br><br>#override parameter_hashref => sub {<br># my $hash = super();<br># $hash->{password} = delete $hash->{new_password};<br># delete $hash->{confirm_new_password};<br># return $hash;<br>#};<br>
<br>1;<br><br>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.
<br><br>What am i doing wrong?<br><br>-- <br>Jonas<br><br> </div><br></div><br>