now I want to return to default registration
When I disable this:
##auth.settings.actions_disabled = ['register'] ## auto-register disabled;
forces users to go through my custom registration
I get error after clicking on "Sign up" link
'password' is not in listVersionweb2py™Version
never mind ... it works now
I had password readable = False
##db.auth_user.password.readable = db.auth_user.password.writable = False
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
now I need to disable register button from one more place. When user
attempts to post data to table where being logged on is required, W2P
automatically throws up the login prompt, which also has the register
button.
how to suppress the register button here?
Login
E-mail: Password:
please try :
settings.actions_disabled = ['register']
best regards,
stifan
--
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
Thanks Anthony,
Register now doesn't appear in dropdown, but can you simplify description
of what functionality is lost? If the register action is needed, how can
it be restored while still suppressing the word register in the dropdown?
If that is not possible, where an how can dropdown
I believe you should still be able to create a registration form explicitly
via auth.register() (though please try it to confirm). However, if you use
something like the default user action:
def user():
return dict(form=auth())
and call it with a URL like /myapp/default/user/register, it
please try :
*models/db.py*
settings.actions_disabled = ['register']
best regards,
stifan
--
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
On Friday, July 4, 2014 9:37:09 PM UTC-4, 黄祥 wrote:
please try :
*models/db.py*
settings.actions_disabled = ['register']
Note, it is auth.settings.actions_disabled. This will remove the link from
the navbar, but it will also prevent the register action from working via
the user() function
8 matches
Mail list logo