summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-31 12:18:30 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-31 12:18:30 +1100
commit152ed6da9568982ba1a3a9db5cd6dfa9e1ace4df (patch)
tree6b7d289052acaec810f7bc670e449c327ec65a87
parentAdd `private_channels_version` to `client_state` in identity. also set sentry... (diff)
downloadserver-152ed6da9568982ba1a3a9db5cd6dfa9e1ace4df.tar.xz
Add token check back to loginRedirect
-rw-r--r--assets/preload-plugins/loginRedirect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/preload-plugins/loginRedirect.js b/assets/preload-plugins/loginRedirect.js
index 7b5db578..0b5e443a 100644
--- a/assets/preload-plugins/loginRedirect.js
+++ b/assets/preload-plugins/loginRedirect.js
@@ -1,7 +1,7 @@
 if (window.location.hostname !== "127.0.0.1" && window.location.hostname !== "localhost") {
 	const redirectIfOnLogin = () => {
 		const path = window.location.pathname;
-		if (path == "/login" || path == "/register" /* || !window.localStorage.getItem("token") */) {
+		if (path == "/login" || path == "/register" || !window.localStorage.getItem("token")) {
 			window.location.pathname = "/login";
 			//window.location.reload();
 		}