mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-05 17:41:30 +03:00
verify_login, but not eable yet
This commit is contained in:
@@ -1358,7 +1358,8 @@ function logout() {
|
||||
}
|
||||
|
||||
function refreshCurrentUser() {
|
||||
if (!handler.get_local_option("access_token")) return;
|
||||
var token = handler.get_local_option("access_token");
|
||||
if (!token) { return; }
|
||||
abLoading = true;
|
||||
abError = "";
|
||||
app.update();
|
||||
@@ -1370,6 +1371,10 @@ function refreshCurrentUser() {
|
||||
handleAbError(data.error);
|
||||
return;
|
||||
}
|
||||
if (!handler.verify_login(data.verifier, token)) {
|
||||
handleAbError("Please update your self-hosting server Pro to latest version");
|
||||
return;
|
||||
}
|
||||
set_local_user_info(data);
|
||||
myIdMenu.update();
|
||||
getAb();
|
||||
|
||||
Reference in New Issue
Block a user