On Wednesday, May 10, 2017 at 3:14:08 AM UTC-4, Yebach wrote: > > How do you suggest I arrange my controller for user? >
That's up to you, but for starters, maybe instead of putting all the logic in "if" blocks, make use of the Auth callback settings, such as auth.settings.register_onaccept. And for customizing the flash messages, use the auth.messages, such as auth.messages.registration_successful. Also, if form.process() has already been called, as in the case of the form object returned by auth(), you can check whether it has been accepted by doing: if form.accepted: You don't have to (and should not) call form.process() a second time. Anthony -- 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.

