Update x-ui.sh

This commit is contained in:
xujie86 2025-07-25 10:27:02 +08:00 committed by GitHub
parent b4dae36345
commit b52cab9e11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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