Commit f6f7f204 authored by Rafael Monnerat's avatar Rafael Monnerat :ghost:

erp5_base: Include symbols on generatePassword

   Include some symbols to allow this script to be more complaint with erp5_authentication_policy, and more common practices of password settings.

   I explicity didnt include string.ponctuation because it introduces some unusual charts that are not commonly found on passwords like brackets, braces, angle brackets...
parent db5ed350
No related merge requests found
return ''.join(random.SystemRandom().sample(string.ascii_letters + string.digits, length)) return ''.join(random.SystemRandom().sample(string.ascii_letters + string.digits + '_-.$%:;!', length))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment