Not sure if it's the best way but I do this in my model: t = auth.settings.table_user if "login" in request.args: t.password.requires = [CRYPT()] else: t.password.requires = [IS_STRONG(special=None),CRYPT()]
On Aug 3, 6:30 pm, Jonathan Lundell <jlund...@pobox.com> wrote: > Suppose I wanted to enforce IS_STRONG when creating, but not checking, > a password. (Which is how it should work anyway, according to me.) Can > I do that without overriding the Auth login and registration functions? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---