[web2py] Re: Custom login form error

2014-05-17 Thread 'sasogeek' via web2py-users
So do I return response.flash or I return session.flash? -- 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 subscr

[web2py] Re: Custom login form error

2014-05-16 Thread Anthony
The form validators check for errors in the form inputs, not failed authentication. Once the form is accepted, the auth.login() method then checks to see if the user exists and the proper password was submitted. If not, it sets session.flash to auth.messages.invalid_login and then does a redire

[web2py] Re: Custom login form error display

2013-11-07 Thread Anthony
You need to use form.custom.widget.fieldname to get the errors to display automatically. If you create your own tags manually in HTML, then you'll have to manually include the errors as well (the error for a given field is in form.errors.fieldname). Maybe something like: {{=DIV(form.errors.em