From b52cab9e113ef5d65e19a9d8bbceb582f743a277 Mon Sep 17 00:00:00 2001 From: xujie86 <167618598+xujie86@users.noreply.github.com> Date: Fri, 25 Jul 2025 10:27:02 +0800 Subject: [PATCH] Update x-ui.sh --- x-ui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-ui.sh b/x-ui.sh index 97dc9102..6fa54768 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -181,9 +181,9 @@ reset_user() { fi read -rp "Please set the login username [default is a random username]: " config_account - [[ -z $config_account ]] && config_account=$(date +%s%N | md5sum | cut -c 1-8) + [[ -z $config_account ]] && config_account=$(gen_random_string 10) read -rp "Please set the login password [default is a random password]: " config_password - [[ -z $config_password ]] && config_password=$(date +%s%N | md5sum | cut -c 1-8) + [[ -z $config_password ]] && config_password=$(gen_random_string 18) read -rp "Do you want to disable currently configured two-factor authentication? (y/n): " twoFactorConfirm if [[ $twoFactorConfirm != "y" && $twoFactorConfirm != "Y" ]]; then