You still need a first_name and last_name even if you choose to make
them hidden

On Aug 1, 9:01 am, Johann Spies <[email protected]> wrote:
> On 1 August 2010 04:21, mdipierro <[email protected]> wrote:
>
> > Can I see your model
>
> from gluon.tools import *
> auth=Auth(globals(),db)              # authentication/authorization
> crud=Crud(globals(),db)              # for CRUD helpers using auth
> service=Service(globals())           # for json, xml, jsonrpc, xmlrpc, amfrpc
>
> auth.settings.hmac_key='sha512:67fb6b7f-9317-4083-8a6d-6b0e248fc395'
> auth_table = db.define_table(
>     auth.settings.table_user_name,
>     Field('username',length=128),
>     Field('password', 'password', length=256,
>           writable=True,readable=False, label='Password'),
>     Field('registration_key', length=128, default= '',
>           writable=False, readable=False)
>     )
> auth.define_tables()                 # creates all needed tables
> auth_table.username.requires = IS_NOT_IN_DB(db, auth_table.username)
> auth.settings.registration_requires_approval = True
> auth.settings.actions_disabled = ['change_password','register']
>
> Regards
> Johann
> --
>     "Be not deceived; God is not mocked: for whatsoever a
>      man soweth, that shall he also reap."
>                                   Galatians 6:7

Reply via email to