diff options
author | George Moschovitis <george.moschovitis@gmail.com> | 2019-03-05 12:54:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 12:54:44 +0200 |
commit | cf7c64b2c37e56057a06e9a7b4a5ec549fd73e3f (patch) | |
tree | 803894d07629f723b7bfd45149eb220425e8658b | |
parent | b812d23e32c858e5ef9cb1b4965e49aee8a97a74 (diff) |
Pass agent id to authorization pages (#5551)
Will allow for better UX and alternative authorization methods.
-rw-r--r-- | web/gui/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/gui/main.js b/web/gui/main.js index 8ea33e540e..c5f4eb50bc 100644 --- a/web/gui/main.js +++ b/web/gui/main.js @@ -4744,7 +4744,7 @@ function clearCloudLocalStorageItems() { } function signIn() { - const url = `${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?origin=${encodeURIComponent(window.location.origin + "/")}`; + const url = `${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?id=${NETDATA.registry.machine_guid}&origin=${encodeURIComponent(window.location.origin + "/")}`; window.open(url); } |