From 772d363fa16003281b28a2d9f4e1b4325e9be7a9 Mon Sep 17 00:00:00 2001 From: ReturnFI <151555003+ReturnFI@users.noreply.github.com> Date: Fri, 7 Nov 2025 19:25:36 +0000 Subject: [PATCH] feat(user): Set default status to 'On-hold' for new users --- core/scripts/hysteria2/add_user.py | 3 ++- core/scripts/hysteria2/bulk_users.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/scripts/hysteria2/add_user.py b/core/scripts/hysteria2/add_user.py index 2ab01ba..9b0d17d 100644 --- a/core/scripts/hysteria2/add_user.py +++ b/core/scripts/hysteria2/add_user.py @@ -52,7 +52,8 @@ def add_user(username, traffic_gb, expiration_days, password=None, creation_date "max_download_bytes": traffic_bytes, "expiration_days": expiration_days, "blocked": False, - "unlimited_user": unlimited_user + "unlimited_user": unlimited_user, + "status": "On-hold" } if note: diff --git a/core/scripts/hysteria2/bulk_users.py b/core/scripts/hysteria2/bulk_users.py index 45051ff..92ebd81 100644 --- a/core/scripts/hysteria2/bulk_users.py +++ b/core/scripts/hysteria2/bulk_users.py @@ -63,7 +63,8 @@ def add_bulk_users(traffic_gb, expiration_days, count, prefix, start_number, unl "max_download_bytes": traffic_bytes, "expiration_days": expiration_days, "blocked": False, - "unlimited_user": unlimited_user + "unlimited_user": unlimited_user, + "status": "On-hold" } users_to_insert.append(user_doc)