mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 04:12:20 +08:00
fix: web, 2fa, trust (#9594)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
2591d4f044
commit
507de628c9
@ -152,7 +152,10 @@ class RustdeskImpl {
|
|||||||
required String code,
|
required String code,
|
||||||
required bool trustThisDevice,
|
required bool trustThisDevice,
|
||||||
dynamic hint}) {
|
dynamic hint}) {
|
||||||
return Future(() => js.context.callMethod('setByName', ['send_2fa', code]));
|
return Future(() => js.context.callMethod('setByName', [
|
||||||
|
'send_2fa',
|
||||||
|
jsonEncode({'code': code, 'trust_this_device': trustThisDevice})
|
||||||
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> sessionClose({required UuidValue sessionId, dynamic hint}) {
|
Future<void> sessionClose({required UuidValue sessionId, dynamic hint}) {
|
||||||
@ -1682,7 +1685,8 @@ class RustdeskImpl {
|
|||||||
|
|
||||||
bool sessionGetEnableTrustedDevices(
|
bool sessionGetEnableTrustedDevices(
|
||||||
{required UuidValue sessionId, dynamic hint}) {
|
{required UuidValue sessionId, dynamic hint}) {
|
||||||
throw UnimplementedError();
|
return js.context.callMethod('getByName', ['enable_trusted_devices']) ==
|
||||||
|
'Y';
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> mainGetTrustedDevices({dynamic hint}) {
|
Future<String> mainGetTrustedDevices({dynamic hint}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user