There should be settings for all that stuff
here: http://web2py.com/books/default/chapter/29/9#Settings-and-messages --
mostly in auth.messages.
Anthony
On Monday, January 23, 2012 7:39:45 PM UTC-5, thstart wrote:
>
> It worked. Now I want to change *formstyle* and default labels:
> 1) E-mail to Email
> 2) The message in red below Email: Invalid email to Please enter a valid
> email address.
> 3) The message in red below password: too short to Please enter a valid
> password.
> too short is actually misleading because I am hitting Sign Up with all
> fields empty.
>
>
> auth.settings.login_onvalidation = login_email_lower
> current.app.auth = auth
> form=current.app.auth.login(next=login_next)
>
> form.custom.submit['_data-theme'] = 'e'
> form.custom.submit_button = 'Sign In'
>
> like in:
>
> form_add_email_address = SQLFORM.factory(
> Field('email_address',
> requires=[IS_NOT_EMPTY(), IS_EMAIL(error_message='invalid email!')]),
> submit_button = 'Add',
> *formstyle *= 'table2cols'
>
> )
>
>