I had a similar case. I overrode &#39;create&#39; and it worked fine, although I am not sure this is Jifty style.<br><br><div><span class="gmail_quote">On 3/28/07, <b class="gmail_sendername">Henry Baragar</b> &lt;<a href="mailto:Henry.Baragar@instantiated.ca">
Henry.Baragar@instantiated.ca</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;">Hello,<br><br>The topic is really about the order in which &quot;validate_column&quot; and &quot;
<br>before_set_column&quot; get called, but the purpose is for implementing my own<br>authentication module that validates that new passwords meet corporate policy<br>and then encrypts them before storing them in the database.
<br><br>It seems to me that the correct place to put password encryption is in the<br>&quot;before_set_column&quot; method, but this method gets called before<br>&quot;validate_column&quot;.&nbsp;&nbsp;This means that &quot;validate_column&quot; tries to validate the
<br>encrypted password (which does not work very well).<br><br>What is the reasoning for running &quot;before_set_column&quot; before<br>&quot;validate_column&quot;?&nbsp;&nbsp;(Particularly since there is a &quot;canonize_column&quot; that is
<br>called before &quot;validate_column&quot;).<br><br>If &quot;before_set_column&quot; is not the correct place to encrypt the password, then<br>where should it be done?<br><br>Regards,<br>Henry<br>_______________________________________________
<br>jifty-devel mailing list<br><a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br><a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best,<br>In-Suk Joung