summary refs log tree commit diff
path: root/api/client_test
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 14:31:23 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 14:31:23 +0200
commit0516357477e32f74ff8db03de5d1d6d5552d02e9 (patch)
tree388fa71b287eda1fc83b27bf5d1e148e67e55074 /api/client_test
parent:bug: fix array key in config (diff)
parentMerge pull request #429 from fosscord/dev (diff)
downloadserver-0516357477e32f74ff8db03de5d1d6d5552d02e9.tar.xz
Merge branch 'master' of http://github.com/fosscord/fosscord-server
Diffstat (limited to 'api/client_test')
-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" },