mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-22 10:03:01 +08:00
refact: web elevation (#9445)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
664a3e186e
commit
e0095aebda
@ -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})
|
||||
]));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user