shorten password length

pull/164/head
Aevann 2023-06-30 19:51:59 +03:00
parent ed322add97
commit 15415a2c5a
1 changed files with 1 additions and 1 deletions

View File

@ -1890,7 +1890,7 @@ def delete_media_post(v):
@admin_level_required(PERMS['USER_RESET_PASSWORD'])
def admin_reset_password(user_id, v):
user = get_account(user_id)
new_password = secrets.token_urlsafe(57)
new_password = secrets.token_urlsafe(39)
user.passhash = hash_password(new_password)
g.db.add(user)