trust this device to skip 2fa (#9012)

* trust this device to skip 2fa

Signed-off-by: 21pages <sunboeasy@gmail.com>

* Update connection.rs

---------

Signed-off-by: 21pages <sunboeasy@gmail.com>
Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
This commit is contained in:
21pages
2024-08-12 18:08:33 +08:00
committed by GitHub
parent 57834840b8
commit 1729ee337f
64 changed files with 845 additions and 22 deletions

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "الوثوق بهذا الجهاز"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Даверыць гэтую прыладу"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Доверете се на това устройство"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Confia en aquest dispositiu"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", "不少于{}个字符"),
("Wrong PIN", "PIN 码错误"),
("Set PIN", "设置 PIN 码"),
("Enable trusted devices", "启用信任设备"),
("Manage trusted devices", "管理信任设备"),
("Trust this device", "信任此设备"),
("Platform", "平台"),
("Days remaining", "剩余天数"),
("enable-trusted-devices-tip", "允许受信任的设备跳过 2FA 验证"),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Důvěřovat tomuto zařízení"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Husk denne enhed"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", "Erfordert mindestens {} Zeichen"),
("Wrong PIN", "Falsche PIN"),
("Set PIN", "PIN festlegen"),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Diesem Gerät vertrauen"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Εμπιστεύομαι αυτή την συσκευή"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -232,6 +232,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Are you sure you want to cancel 2FA?"),
("cancel-bot-confirm-tip", "Are you sure you want to cancel Telegram bot?"),
("About RustDesk", ""),
("network_error_tip", "Please check your network connection, then click retry.")
("network_error_tip", "Please check your network connection, then click retry."),
("enable-trusted-devices-tip", "Skip 2FA verification on trusted devices"),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Confiar en este dispositivo"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Gailu honetaz fidatu"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", "حداقل به {} کاراکترها نیاز دارد"),
("Wrong PIN", "پین اشتباه است"),
("Set PIN", "پین را تنظیم کنید"),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "به این دستگاه اعتماد کنید"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Faire confiance à cet appareil"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Vjeruj ovom uređaju"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Izinkan perangkat ini"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", "Richiede almeno {} caratteri"),
("Wrong PIN", "PIN errato"),
("Set PIN", "Imposta PIN"),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Registra questo dispositivo come attendibile"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "このデバイスを信頼する"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "이 장치 신뢰"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Pasitikėk šiuo įrenginiu"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Uzticēties šai ierīcei"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Husk denne enheten"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", "Vereist minstens {} tekens"),
("Wrong PIN", "Verkeerde PIN-code"),
("Set PIN", "PIN-code instellen"),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Vertrouw dit apparaat"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Dodaj to urządzenie do zaufanych"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", "PIN Errado"),
("Set PIN", "Definir PIN"),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Confiar neste dispositivo"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Acest dispozitiv este de încredere"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", "Требуется не менее {} символов"),
("Wrong PIN", "Неправильный PIN-код"),
("Set PIN", "Установить PIN-код"),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Доверенное устройство"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Dôverovať tomuto zariadeniu"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Lita på denna enhet"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "เชื่อถืออุปกรณ์นี้"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", ""),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "信任此裝置"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", "Потрібно щонайменше {} символів"),
("Wrong PIN", "Неправильний PIN-код"),
("Set PIN", "Встановити PIN-код"),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Довірений пристрій"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}

View File

@@ -636,5 +636,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Requires at least {} characters", ""),
("Wrong PIN", ""),
("Set PIN", ""),
("Enable trusted devices", ""),
("Manage trusted devices", ""),
("Trust this device", "Tin thiết bị này"),
("Platform", ""),
("Days remaining", ""),
("enable-trusted-devices-tip", ""),
].iter().cloned().collect();
}