fix: web, forget password (#9524)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-10-01 07:04:43 +08:00 committed by GitHub
parent 1ebc726acd
commit 4eca8b9447
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -936,7 +936,7 @@ class RustdeskImpl {
}
Future<void> mainForgetPassword({required String id, dynamic hint}) {
return Future(() => js.context.callMethod('setByName', ['forget']));
return mainSetPeerOption(id: id, key: 'password', value: '');
}
Future<bool> mainPeerHasPassword({required String id, dynamic hint}) {