<br><br><div><span class="gmail_quote">On 25/01/07, <b class="gmail_sendername">Jonas Alves</b> &lt;<a href="mailto:jonas.alves@gmail.com">jonas.alves@gmail.com</a>&gt; 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> &lt;<a href="mailto:dbix-class@trout.me.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
dbix-class@trout.me.uk</a>&gt; 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>&gt;<br>&gt;<br>&gt; On 23/01/07, Guillermo Roditi &lt;<a href="mailto:groditi@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">groditi@gmail.com
</a>&gt; wrote: Hey, any<br>&gt; chance you could post the working code now that you fixed it.
<br>&gt;<br>&gt; There is no actual real working code for reaction out there, and<br>&gt; it&#39;d be nice to look at some real code..<br>&gt;<br>&gt; in other words, can I see your finished action and controller<br>&gt; classes so i can steal ideas and learn something?
<br>&gt;<br>&gt; I am working on a reaction app that I will post to public SVN as<br>&gt; soon as it actually runs and keep it public as i develop it so<br>&gt; other people can get an idea aswell<br>&gt;<br>&gt; Hi Guillermo,
<br>&gt; The application that I&#39;m developing is for a client so I can&#39;t make<br>&gt; it public. But here are the pertinent action classes and<br>&gt; controllers that i have for now:<br><br>Any particular reason you aren&#39;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&#39;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>&nbsp;&nbsp;&nbsp; Reaction::InterfaceModel::Action::DBIC::ResultSet::Create<br>&nbsp;&nbsp;&nbsp; Reaction::InterfaceModel::Action::User::SetPassword<br>);<br><br>does &#39;Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword&#39;;
<br><br>has &#39;email_address&#39; =&gt; (isa =&gt; &#39;EmailAddress&#39;, is =&gt; &#39;rw&#39;, set_or_lazy_fail(&#39;email_address&#39;));<br>#has &#39;password&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; (isa =&gt; &#39;StrongPassword&#39;, is =&gt; &#39;rw&#39;);
<br>#has &#39;confirm_password&#39; =&gt; (isa =&gt; &#39;StrongPassword&#39;, is =&gt; &#39;rw&#39;);<br>has &#39;last_name&#39;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; (isa =&gt; &#39;NonEmptySimpleStr&#39;, is =&gt; &#39;rw&#39;, predicate =&gt; &#39;has_last_name&#39;);
<br>has &#39;first_name&#39;&nbsp;&nbsp;&nbsp; =&gt; (isa =&gt; &#39;NonEmptySimpleStr&#39;, is =&gt; &#39;rw&#39;, set_or_lazy_fail(&#39;first_name&#39;));<br>has &#39;username&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; (isa =&gt; &#39;NonEmptySimpleStr&#39;, is =&gt; &#39;rw&#39;, set_or_lazy_fail(&#39;username&#39;));
<br><br>#override parameter_hashref =&gt; sub {<br>#&nbsp;&nbsp;&nbsp; my $hash = super();<br>#&nbsp;&nbsp;&nbsp; $hash-&gt;{password} = delete $hash-&gt;{new_password};<br>#&nbsp;&nbsp;&nbsp; delete $hash-&gt;{confirm_new_password};<br>#&nbsp;&nbsp;&nbsp; return $hash;<br>#};<br>
<br>1;<br><br>But i get this error: Can&#39;t locate object method &quot;password&quot; via package &quot;DBIx::Class::ResultSet&quot; 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>&nbsp;</div><br></div><br>