diff options
| author | Vorontsov Amadey <89128818+vorontsov-amd@users.noreply.github.com> | 2026-01-18 17:44:49 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-18 17:44:49 +0300 |
| commit | f273708f6dab48fe9e65e38eb0e6342b8506c258 (patch) | |
| tree | b37b03adce421c0f8fbc10f069481e9b74ccc136 | |
| parent | e6318d57e4b737d1921d99278f994a0e76dcd589 (diff) | |
Feature: Use of username and passwords consisting of several words (#3647)
| -rw-r--r-- | x-ui.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
