Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVorontsov Amadey <89128818+vorontsov-amd@users.noreply.github.com>2026-01-18 17:44:49 +0300
committerGitHub <noreply@github.com>2026-01-18 17:44:49 +0300
commitf273708f6dab48fe9e65e38eb0e6342b8506c258 (patch)
treeb37b03adce421c0f8fbc10f069481e9b74ccc136
parente6318d57e4b737d1921d99278f994a0e76dcd589 (diff)
Feature: Use of username and passwords consisting of several words (#3647)
-rw-r--r--x-ui.sh4
1 files 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