mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
use 2 random words when creating random alias
This commit is contained in:
parent
4e16eb7403
commit
5570300699
@ -22,7 +22,8 @@ def word_exist(word):
|
||||
|
||||
def random_words():
|
||||
"""Generate a random words. Used to generate user-facing string, for ex email addresses"""
|
||||
nb_words = random.randint(2, 3)
|
||||
# nb_words = random.randint(2, 3)
|
||||
nb_words = 2
|
||||
return "_".join([random.choice(_words) for i in range(nb_words)])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user