So, I have db/table where i have data, i want just login user by the my 
field/data:


def user():
    auth = Auth(db, signature=False)
    auth.settings.create_user_groups = False
    db.define_table('user_psw',
                    Field 
<http://127.0.0.1:3000/examples/global/vars/Field>('tabnum', 'id', 
readable=False, writable=False),
                    Field 
<http://127.0.0.1:3000/examples/global/vars/Field>('name', readable=False, 
writable=False),
                    Field 
<http://127.0.0.1:3000/examples/global/vars/Field>('pwd', 'password', 
requires=CRYPT <http://127.0.0.1:3000/examples/global/vars/CRYPT>(), 
readable=False),
                    Field 
<http://127.0.0.1:3000/examples/global/vars/Field>('ipadr'),
                    Field 
<http://127.0.0.1:3000/examples/global/vars/Field>('groupid'),
                    Field 
<http://127.0.0.1:3000/examples/global/vars/Field>('registration_key', 
writable=False, readable=False, default=''),
                    Field 
<http://127.0.0.1:3000/examples/global/vars/Field>('reset_password_key', 
writable=False, readable=False, default=''),
                    Field 
<http://127.0.0.1:3000/examples/global/vars/Field>('registration_id', 
writable=False, readable=False, default='')
                    )
    if request <http://127.0.0.1:3000/examples/global/vars/request>.args(0) == 
'login':
        auth.settings.showid = False
        auth.settings.table_user_name = 'user_psw'
        auth.settings.login_userfield = 'name'
        auth.settings.password_field = 'pwd'
        auth.settings.login_next = URL 
<http://127.0.0.1:3000/examples/global/vars/URL>('index.html')
        auth.settings.logout_next = URL 
<http://127.0.0.1:3000/examples/global/vars/URL>('index.html')
        auth.settings.actions_disabled.append('register')
        auth.settings.login_email_validate = False
        custom_auth_table = db[auth.settings.table_user_name]
        custom_auth_table.name.requires = IS_NOT_EMPTY 
<http://127.0.0.1:3000/examples/global/vars/IS_NOT_EMPTY>()
        custom_auth_table.pwd.requires = CRYPT 
<http://127.0.0.1:3000/examples/global/vars/CRYPT>()
        auth.settings.table_user = custom_auth_table

login works, but some error:

File "D:\Web\server\web2py\gluon\tools.py", line 4159, in update_groups
    table_membership.user_id == self.user.id).select()
  File "D:\Web\server\web2py\gluon\packages\dal\pydal\objects.py", line 90, in 
__getattr__
    raise AttributeError
AttributeError

Whats wrong? I write - 
 auth.settings.create_user_groups = False

How i can disable this? In project i dont need any groups, memebership, etc... 
only login

-- 
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.

Reply via email to