forked from p15670423/monkey
Set default password length to 32 in `get_random_password()`
This commit is contained in:
parent
1d544d162a
commit
636a201d19
|
@ -1,6 +1,8 @@
|
||||||
import secrets
|
import secrets
|
||||||
|
|
||||||
|
SECRET_BYTE_LENGTH = 32
|
||||||
|
|
||||||
def get_random_password(length: int = 12) -> str:
|
|
||||||
|
def get_random_password(length: int = SECRET_BYTE_LENGTH) -> str:
|
||||||
password = secrets.token_urlsafe(length)
|
password = secrets.token_urlsafe(length)
|
||||||
return password
|
return password
|
||||||
|
|
Loading…
Reference in New Issue