mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
use shorter words when generating emails
This commit is contained in:
parent
1703f4b5f6
commit
1670b37858
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ with open(WORDS_FILE_PATH) as f:
|
|||
|
||||
def random_words():
|
||||
"""Generate a random words. Used to generate user-facing string, for ex email addresses"""
|
||||
nb_words = random.randint(3, 5)
|
||||
nb_words = random.randint(2, 3)
|
||||
return "_".join([random.choice(_words) for i in range(nb_words)])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue