Field('password',type='password',requires=CRYPT())
Anyway... implementing authentication logic is very hard. It took us years
to get it right (and did we get this right?). I suggest you simply use
auth = Auth(db)
auth.define_tables()
def index(): return dict(form=auth())
and you use and extend the existing db.auth_* tables.
On Wednesday, 10 December 2014 09:57:30 UTC-6, Oliver wrote:
>
> where can I read or learn more about defining tables? I'm trying to
> convert my password to more encrypted method in web2py. what is the best
> way to encrypt password in web2py?
>
>
> I appreciate you help.
>
> my test user table
>
> db.define_table('users',
> Field('first_name', 'text'),
> Field('last_name', 'text'),
> Field('email', 'text'),
> Field('password'))
>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.