a quick fix for 2fa

This commit is contained in:
rustdesk
2024-01-21 15:18:25 +08:00
parent 804f035a87
commit 68afb89b99
2 changed files with 3 additions and 4 deletions

View File

@@ -2564,7 +2564,6 @@ pub fn handle_login_error(
interface.msgbox("re-input-password", err, "Do you want to enter again?", "");
true
} else if err == LOGIN_MSG_2FA_WRONG || err == REQUIRE_2FA {
lc.write().unwrap().password = Default::default();
interface.msgbox("input-2fa", err, "", "");
true
} else if LOGIN_ERROR_MAP.contains_key(err) {