From f273708f6dab48fe9e65e38eb0e6342b8506c258 Mon Sep 17 00:00:00 2001 From: Vorontsov Amadey <89128818+vorontsov-amd@users.noreply.github.com> Date: Sun, 18 Jan 2026 17:44:49 +0300 Subject: [PATCH] Feature: Use of username and passwords consisting of several words (#3647) --- x-ui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-ui.sh b/x-ui.sh index 07aaddc6..b4645ffa 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -229,9 +229,9 @@ reset_user() { read -rp "Do you want to disable currently configured two-factor authentication? (y/n): " twoFactorConfirm if [[ $twoFactorConfirm != "y" && $twoFactorConfirm != "Y" ]]; then - ${xui_folder}/x-ui setting -username ${config_account} -password ${config_password} -resetTwoFactor false >/dev/null 2>&1 + ${xui_folder}/x-ui setting -username "${config_account}" -password "${config_password}" -resetTwoFactor false >/dev/null 2>&1 else - ${xui_folder}/x-ui setting -username ${config_account} -password ${config_password} -resetTwoFactor true >/dev/null 2>&1 + ${xui_folder}/x-ui setting -username "${config_account}" -password "${config_password}" -resetTwoFactor true >/dev/null 2>&1 echo -e "Two factor authentication has been disabled." fi