Pass agent id to authorization pages (#5551)
Will allow for better UX and alternative authorization methods.
George Moschovitis committed
Mar 5, 2019 at 12:54 UTC
cf7c64b2c37e56057a06e9a7b4a5ec549fd73e3f
1 file changed
+1
-1
web/gui/main.js
+1
-1
@@ -4744,7 +4744,7 @@ function clearCloudLocalStorageItems() {
4744
}
4745
4746
function signIn() {
4747
- const url = `${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?origin=${encodeURIComponent(window.location.origin + "/")}`;
4747
+ const url = `${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?id=${NETDATA.registry.machine_guid}&origin=${encodeURIComponent(window.location.origin + "/")}`;
4748
window.open(url);
4749
}
4750