refact: web elevation (#9445)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-09-24 13:53:17 +08:00 committed by GitHub
parent 664a3e186e
commit e0095aebda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -608,7 +608,7 @@ class RustdeskImpl {
Future<void> sessionElevateDirect(
{required UuidValue sessionId, dynamic hint}) {
throw UnimplementedError();
return Future(() => js.context.callMethod('setByName', ['elevate_direct']));
}
Future<void> sessionElevateWithLogon(
@ -618,7 +618,7 @@ class RustdeskImpl {
dynamic hint}) {
return Future(() => js.context.callMethod('setByName', [
'elevate_with_logon',
jsonEncode({username, password})
jsonEncode({'username': username, 'password': password})
]));
}