I am trying to create Janrain login + web2py login with password so the
users can choose login and registration method. When I try the following
example from the book:
from gluon.contrib.login_methods.rpx_account import RPXAccount
from gluon.contrib.login_methods.extended_login_form import
ExtendedLoginForm
other_form = RPXAccount(request,
api_key='...',
domain='...',
url='http://127.0.0.1:8000/%s/default/user/login' % request.application)
auth.settings.login_form = ExtendedLoginForm(auth, other_form, signals=[
'token'])
It breaks with *'DIV' object has no attribute 'add_button'* error.
When I add the line
auth.settings.actions_disabled=['register','change_password',
'request_reset_password']
It now shows both login forms but now user can not register with web2py
method, only with janrain method.
Is there a way to show both login methods and to show a registration button
and menu?
--
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/groups/opt_out.