diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-06-27 16:09:38 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-06-27 16:09:38 +1000 |
commit | 6e1eb28078c2dd1ac4ce1f38c351cb9d0a3958a5 (patch) | |
tree | e869fa1f05675356417c982b6b79b22f53b2df57 /slowcord/public | |
parent | Token in localStorage must be JSON (diff) | |
download | server-6e1eb28078c2dd1ac4ce1f38c351cb9d0a3958a5.tar.xz |
the cookie name is being a bitch?
Diffstat (limited to 'slowcord/public')
-rw-r--r-- | slowcord/public/login.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slowcord/public/login.html b/slowcord/public/login.html index def2c786..ba49ecf8 100644 --- a/slowcord/public/login.html +++ b/slowcord/public/login.html @@ -124,9 +124,9 @@ document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)')?.pop() || '' ); - let token = getCookieValue("oauth-discord"); + let token = getCookieValue("token"); if (token.trim().length) { - document.cookie = "oauth-discord="; // don't care + document.cookie = "token="; // don't care window.localStorage.setItem("token", `"${token}"`); window.location.href = "/app"; } |