I will amend it. You can do this auth=Auth(globals(),db)
db.define_table('auth_user', SQLField('first_name',length=128), SQLField('last_name',length=128), SQLField('password','password',requires=CRYPT()), SQLField('registration_key',length=128)) auth.settings.table_user=db.auth_user auth.define_tables() Make sure the table name matches, you have those four fields. You can add fields and validators to name and your own fields. On Apr 14, 5:29 pm, Italo Maia <italo.m...@gmail.com> wrote: > No good : /. Couldn't find a example referencing an user model : /. > > On 14 abr, 05:09, Jason Brower <encomp...@gmail.com> wrote: > > > Err... oops..http://mdp.cti.depaul.edu/examples/default/tools#authentication > > This will help a lot more. > > BR > > -Jason > > > On Tue, 2009-04-14 at 00:51 -0700, Italo Maia wrote: > > > Hi! I'm new to web2py(as new as it gets), and i'm having some trouble > > > with authentication stuff. Like, how to reference to it in db.py and > > > stuff. So, if someone could tell me of a nice article covering the > > > subject, i would love to read it = ] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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 -~----------~----~----~----~------~----~------~--~---