mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-07 18:02:48 +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) {
|
LoginResponse.fromJson(Map<String, dynamic> json) {
|
||||||
access_token = json['access_token'];
|
access_token = json['access_token'];
|
||||||
type = json['type'];
|
type = json['type'];
|
||||||
print('REMOVE ME ================== $json');
|
|
||||||
user = json['user'] != null ? UserPayload.fromJson(json['user']) : null;
|
user = json['user'] != null ? UserPayload.fromJson(json['user']) : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1175,8 +1175,11 @@ function check_if_overlay() {
|
|||||||
checkConnectStatus();
|
checkConnectStatus();
|
||||||
|
|
||||||
function set_local_user_info(user) {
|
function set_local_user_info(user) {
|
||||||
var user_info = {name: user.name, status: user.status};
|
var user_info = {name: user.name};
|
||||||
handler.set_local_option("user_info", JSON.stringify(user_info));
|
if (user.status) {
|
||||||
|
user_info.status = user.status;
|
||||||
|
}
|
||||||
|
handler.set_local_option("user_info", JSON.stringify(user_info));
|
||||||
}
|
}
|
||||||
|
|
||||||
function login() {
|
function login() {
|
||||||
|
Loading…
Reference in New Issue
Block a user