mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-10-13 11:39:13 +00:00
Update x-ui.sh
This commit is contained in:
parent
b65ec83c39
commit
af269a6ca7
1 changed files with 2 additions and 3 deletions
5
x-ui.sh
5
x-ui.sh
|
@ -187,11 +187,10 @@ reset_user() {
|
|||
fi
|
||||
return 0
|
||||
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 16)
|
||||
|
||||
read -rp "Do you want to disable currently configured two-factor authentication? (y/n): " twoFactorConfirm
|
||||
if [[ $twoFactorConfirm != "y" && $twoFactorConfirm != "Y" ]]; then
|
||||
|
|
Loading…
Reference in a new issue