a quick fix for 2fa

This commit is contained in:
rustdesk committed 2024-01-21 15:19:18 +08:00
1 parent 804f035a87
commit 68afb89b99
2 files changed
+3 -4

No files matched your search

-1
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) {