On Monday, May 9, 2011 10:37:02 AM UTC-4, niknok wrote: > > I tried: > > form=SQLFORM.factory( > Field('card_number','string' > ,label='Enter a card number to verify' > ,requires=CRYPT(auth.settings.hmac_key)) > > But instead I found form.vars.card_number unencrypted. This is on w2p > v1.94.5. > Was it unencrypted before or after calling form.accepts? The validators aren't applied until you call form.accepts.
- [web2py] using CRYPT in SQLFORM.factory doesn't work? niknok
- [web2py] Re: using CRYPT in SQLFORM.factory doesn't work? Anthony