Ok I have gotten a bit further. I think form what I can tell I still need to
define my auth table

now I am getting an error

Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/restricted.py", line 188, in restricted
    exec ccode in environment
  File "/home/www-data/web2py/applications/Working/views/default/index.html",
line 15, in <module>
  File "/home/www-data/web2py/gluon/html.py", line 188, in URL
    raise SyntaxError, 'not enough information to build the url'
SyntaxError: not enough information to build the url


Do I need to change some values some where any ideas

*cheers

PS This is my set up so far

# User Registration Information
db.define_table(
    auth.settings.table_user_name,
    Field('first_name', length=128, default=''),
    Field('last_name', length=128, default=''),
    Field('email', length=128, default=''),
    Field('username', length=128, default='', unique=True),
    Field('address', length=512, default=''),
   #Field('birthday', 'date'),
    Field('password', 'password', length=512,
          readable=False, label='Password'),
    Field('registration_key', length=512,
          writable=False, readable=False, default=''),
    Field('reset_password_key', length=512,
          writable=False, readable=False, default=''),
    Field('registration_id', length=512,
          writable=False, readable=False, default=''))


from gluon.contrib.login_methods.rpx_account import *
auth.settings.actions_disabled=['register','change_password','request_reset_password']
auth.settings.login_form = RPXAccount(request,
    api_key='....',
    domain='.....',
    url = "http://domain/%s/default/user/login"; % request.application)

Reply via email to