summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 13:04:46 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 13:04:46 +0200
commit7e335fa26606904528e70b0de9817324bc08f84b (patch)
tree73d86ef2d9b3454cca4ca92e1bd6e4481d96a21b
parent:bug: fix claim account (diff)
downloadserver-7e335fa26606904528e70b0de9817324bc08f84b.tar.xz
:art: do not auto guest register on login/register page
-rw-r--r--api/client_test/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/client_test/index.html b/api/client_test/index.html
index fb2e0a2d..41d41598 100644
--- a/api/client_test/index.html
+++ b/api/client_test/index.html
@@ -47,7 +47,7 @@
 
 			// Auto register guest account:
 			const token = JSON.parse(localStorage.getItem("token"));
-			if (!token) {
+			if (!token && location.pathname !== "/login" && location.pathname !== "/register") {
 				fetch(`${window.GLOBAL_ENV.API_ENDPOINT}/auth/register`, {
 					method: "POST",
 					headers: { "content-type": "application/json" },