Thanks, issue created: http://code.google.com/p/web2py/issues/detail?id=1863

On Tuesday, January 28, 2014 6:57:35 PM UTC-5, Anthony wrote:
>
> On Tuesday, January 28, 2014 4:46:27 PM UTC-5, User wrote:
>>
>> When registering a new user using the default Auth forms, if the password 
>> entered is too short, an error message "Too short" is displayed.  I would 
>> like to change this message to something more meaningful such as "Password 
>> must be at least x characters"
>>
>> 1. How do I do this?
>>
>
> db.auth_user.password.requires[0].error_message = 'Password must be at 
> least x characters'
>  
>
>> 2. Shouldn't the default message be something like this?  Seems not user 
>> friendly to just say password "Too short" with no indication to the user 
>> how long a password should be.  Are they just supposed to keep entering 
>> passwords until they hit whatever arbitrary password length we have set?
>>
>
> Yes, good idea. Please open an issue on Google Code.
>  
>
>> Alternatively, is there a way to specify a permanent hint on the form 
>> that passwords must be x characters?
>>
>
> It would probably be a good idea to add this by default as well. You can 
> do it manually via:
>
> db.auth_user.password.comment = 'Password must be...'  
>
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to