From d698b78ba73b7be84821458d41fc47d407178d5c Mon Sep 17 00:00:00 2001 From: KittenTM Date: Thu, 5 Feb 2026 10:40:13 +0100 Subject: [PATCH] add SPFN login support --- config.js | 4 +++ users/auth/splatfestival/index.html | 28 ++++++-------------- users/auth/splatfestival/splatfestivalyay.js | 17 ++++++++++++ 3 files changed, 29 insertions(+), 20 deletions(-) create mode 100644 config.js create mode 100644 users/auth/splatfestival/splatfestivalyay.js diff --git a/config.js b/config.js new file mode 100644 index 0000000..b6dca06 --- /dev/null +++ b/config.js @@ -0,0 +1,4 @@ +// note: this is just the default config +const CONFIG = { + API_BASE_URL: "http://127.0.0.1:5000" +}; \ No newline at end of file diff --git a/users/auth/splatfestival/index.html b/users/auth/splatfestival/index.html index e900f7f..1235471 100644 --- a/users/auth/splatfestival/index.html +++ b/users/auth/splatfestival/index.html @@ -1,7 +1,5 @@ - - - + @@ -14,7 +12,9 @@ Sign In to Splatfestival Network + + @@ -24,7 +24,6 @@

NINTENDO NETWORK

- -
-
+

Sign In

Please sign in with a Splatfestival Network ID to proceed.

- -
-
-
- -
- - -
-

Forgot your password?

-
- - - + \ No newline at end of file diff --git a/users/auth/splatfestival/splatfestivalyay.js b/users/auth/splatfestival/splatfestivalyay.js new file mode 100644 index 0000000..19a336c --- /dev/null +++ b/users/auth/splatfestival/splatfestivalyay.js @@ -0,0 +1,17 @@ +window.onload = function() { + const urlParams = new URLSearchParams(window.location.search); + + if (urlParams.has('error')) { + const errorContainer = document.getElementById("auth-error"); + if (errorContainer) { + errorContainer.textContent = "Invalid SFID or Password"; + errorContainer.style.display = "block"; // Show the red text + } + + //user convenience.....grrr + const userField = document.getElementsByName("username")[0]; + if (userField && urlParams.has('username')) { + userField.value = urlParams.get('username'); + } + } +} \ No newline at end of file