mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-20 14:35:54 +00:00
Compare commits
3 commits
78107a70c2
...
8b981d55f1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b981d55f1 | ||
|
|
8098d2b1b1 | ||
|
|
ddf7de0123 |
2 changed files with 5 additions and 2 deletions
|
|
@ -40,6 +40,9 @@ func (s *XrayService) GetXrayErr() error {
|
|||
}
|
||||
|
||||
err := p.GetErr()
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if runtime.GOOS == "windows" && err.Error() == "exit status 1" {
|
||||
// exit status 1 on Windows means that Xray process was killed
|
||||
|
|
|
|||
4
x-ui.sh
4
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue