Or better yet, make it configurable:
def my_random_pw():
....
....
auth.settings.random_password = my_random_pw

On Jun 28, 6:48 pm, "mr.freeze" <[email protected]> wrote:
> Can you patch tools.py random_password so that it generates a password
> that meets any possible complexity requirement of the new IS_STRONG
> validator? Something like this maybe:
>
> def random_password(self):
>     import string
>     password = ''
>     specials=r'!...@#$*?'
>     for i in range(0,3):
>         password += random.choice(string.lowercase)
>         password += random.choice(string.uppercase)
>         password += random.choice(string.digits)
>         password += random.choice(specials)
>     return ''.join(random.sample(password,len(password)))
>
> On Jun 28, 6:18 pm, mdipierro <[email protected]> wrote:
>
> > I believe the only two pending patches are from Hans and Alexey
> > related to tickets support on GAE.
> > I will try take care of those tonight.
>
> > Am I forgetting anything?
>
> > Massimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to