I had a similar case. I overrode 'create' 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> <<a href="mailto:Henry.Baragar@instantiated.ca">
Henry.Baragar@instantiated.ca</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;">Hello,<br><br>The topic is really about the order in which "validate_column" and "
<br>before_set_column" 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>"before_set_column" method, but this method gets called before<br>"validate_column". This means that "validate_column" tries to validate the
<br>encrypted password (which does not work very well).<br><br>What is the reasoning for running "before_set_column" before<br>"validate_column"? (Particularly since there is a "canonize_column" that is
<br>called before "validate_column").<br><br>If "before_set_column" 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