From 6ecdb6e03bb20ac8d28d8ae4fadcc6825ce46624 Mon Sep 17 00:00:00 2001 From: somebodywashere <68244480+somebodywashere@users.noreply.github.com> Date: Fri, 23 May 2025 18:28:02 +0300 Subject: [PATCH] chore: reset two-factor authentication after changing admin credentials --- x-ui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-ui.sh b/x-ui.sh index 641db3a0..96a40dd7 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -185,7 +185,7 @@ reset_user() { 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) - read -rp "Are you sure you want to reset the two factor? (y/n): " twoFactorConfirm + read -rp "Do you want to disable currently configured two-factor authentication? (y/n): " twoFactorConfirm if [[ $twoFactorConfirm != "y" && $twoFactorConfirm != "Y" ]]; then /usr/local/x-ui/x-ui setting -username ${config_account} -password ${config_password} -resetTwoFactor false >/dev/null 2>&1 else