mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-07 09:52:49 +08:00
debug, store user info
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
54cc45dd66
commit
4f50e3d934
@ -123,7 +123,6 @@ class LoginResponse {
|
||||
LoginResponse.fromJson(Map<String, dynamic> json) {
|
||||
access_token = json['access_token'];
|
||||
type = json['type'];
|
||||
print('REMOVE ME ================== $json');
|
||||
user = json['user'] != null ? UserPayload.fromJson(json['user']) : null;
|
||||
}
|
||||
}
|
||||
|
@ -1175,8 +1175,11 @@ function check_if_overlay() {
|
||||
checkConnectStatus();
|
||||
|
||||
function set_local_user_info(user) {
|
||||
var user_info = {name: user.name, status: user.status};
|
||||
handler.set_local_option("user_info", JSON.stringify(user_info));
|
||||
var user_info = {name: user.name};
|
||||
if (user.status) {
|
||||
user_info.status = user.status;
|
||||
}
|
||||
handler.set_local_option("user_info", JSON.stringify(user_info));
|
||||
}
|
||||
|
||||
function login() {
|
||||
|
Loading…
Reference in New Issue
Block a user