From 1fd801403fc8d24851e46477258759d0149eb76f Mon Sep 17 00:00:00 2001 From: Sainan Date: Thu, 6 Feb 2025 07:10:25 -0800 Subject: [PATCH] fix(webui): lowercase email address to match client (#912) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/912 Co-authored-by: Sainan Co-committed-by: Sainan --- static/webui/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/webui/script.js b/static/webui/script.js index 6507d736..93b87d63 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -31,7 +31,7 @@ function doLoginRequest(succ_cb, fail_cb) { url: "/api/login.php", contentType: "text/plain", data: JSON.stringify({ - email: localStorage.getItem("email"), + email: localStorage.getItem("email").toLowerCase(), password: wp.encSync(localStorage.getItem("password"), "hex"), time: parseInt(new Date() / 1000), s: "W0RFXVN0ZXZlIGxpa2VzIGJpZyBidXR0cw==", // signature of some kind