notify: fewer words for a token
This commit is contained in:
parent
43257960aa
commit
09b3d1510b
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ def set_user_default_matrix_room(username: str, roomid: str):
|
||||||
con.commit()
|
con.commit()
|
||||||
|
|
||||||
|
|
||||||
def generate_token(num_words: int = 5) -> str:
|
def generate_token(num_words: int = 3) -> str:
|
||||||
mnemo = Mnemonic("english")
|
mnemo = Mnemonic("english")
|
||||||
words = mnemo.generate(strength=256)
|
words = mnemo.generate(strength=256)
|
||||||
return "-".join(words.split(" ")[0:num_words])
|
return "-".join(words.split(" ")[0:num_words])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue