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 13:23:36 +0200
committerGitHub <noreply@github.com>2021-10-09 13:23:36 +0200
commit2599c5769b0e6fcaf81809ac03d259a3eeb4ede9 (patch)
tree408dd3e1d2b3ca085a6ec87dab0fab41c1dee063 /api/client_test
parent:bug: fix import (diff)
parent:art: do not auto guest register on login/register page (diff)
downloadserver-2599c5769b0e6fcaf81809ac03d259a3eeb4ede9.tar.xz
Merge pull request #428 from fosscord/dev
Various fixes and guest account enhancements
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" },