File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,13 +27,15 @@ class UserPayload {
2727 String name = '' ;
2828 String email = '' ;
2929 String note = '' ;
30+ String ? verifier;
3031 UserStatus status;
3132 bool isAdmin = false ;
3233
3334 UserPayload .fromJson (Map <String , dynamic > json)
3435 : name = json['name' ] ?? '' ,
3536 email = json['email' ] ?? '' ,
3637 note = json['note' ] ?? '' ,
38+ verifier = json['verifier' ],
3739 status = json['status' ] == 0
3840 ? UserStatus .kDisabled
3941 : json['status' ] == - 1
Original file line number Diff line number Diff line change @@ -116,6 +116,10 @@ class UserModel {
116116 userName.value = user.name;
117117 isAdmin.value = user.isAdmin;
118118 bind.mainSetLocalOption (key: 'user_info' , value: jsonEncode (user));
119+ if (isWeb) {
120+ // ugly here, tmp solution
121+ bind.mainSetLocalOption (key: 'verifier' , value: user.verifier ?? '' );
122+ }
119123 }
120124
121125 // update ab and group status
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import 'dart:html';
88import 'dart:async' ;
99
1010import 'package:flutter/foundation.dart' ;
11+ import 'package:flutter_hbb/common/widgets/login.dart' ;
1112import 'package:flutter_hbb/models/state_model.dart' ;
1213
1314import 'package:flutter_hbb/web/bridge.dart' ;
@@ -113,6 +114,13 @@ class PlatformFFI {
113114 context["onInitFinished" ] = () {
114115 completer.complete ();
115116 };
117+ context['loginDialog' ] = () {
118+ loginDialog ();
119+ };
120+ context['closeConnection' ] = () {
121+ gFFI.dialogManager.dismissAll ();
122+ closeConnection ();
123+ };
116124 context.callMethod ('init' );
117125 version = getByName ('version' );
118126 window.onContextMenu.listen ((event) {
Original file line number Diff line number Diff line change @@ -267,6 +267,16 @@ class RustdeskImpl {
267267 ]));
268268 }
269269
270+ Future <int ?> sessionGetTrackpadSpeed (
271+ {required UuidValue sessionId, dynamic hint}) {
272+ throw UnimplementedError ("sessionGetTrackpadSpeed" );
273+ }
274+
275+ Future <void > sessionSetTrackpadSpeed (
276+ {required UuidValue sessionId, required int value, dynamic hint}) {
277+ throw UnimplementedError ("sessionSetTrackpadSpeed" );
278+ }
279+
270280 Future <String ?> sessionGetScrollStyle (
271281 {required UuidValue sessionId, dynamic hint}) {
272282 return Future (() =>
You can’t perform that action at this time.
0 commit comments