fix(webui): lowercase email address to match client (#912)

Reviewed-on: OpenWF/SpaceNinjaServer#912
Co-authored-by: Sainan <sainan@calamity.inc>
Co-committed-by: Sainan <sainan@calamity.inc>
This commit is contained in:
Sainan 2025-02-06 07:10:25 -08:00 committed by OrdisPrime
parent 78032f191c
commit 1fd801403f

View File

@ -31,7 +31,7 @@ function doLoginRequest(succ_cb, fail_cb) {
url: "/api/login.php", url: "/api/login.php",
contentType: "text/plain", contentType: "text/plain",
data: JSON.stringify({ data: JSON.stringify({
email: localStorage.getItem("email"), email: localStorage.getItem("email").toLowerCase(),
password: wp.encSync(localStorage.getItem("password"), "hex"), password: wp.encSync(localStorage.getItem("password"), "hex"),
time: parseInt(new Date() / 1000), time: parseInt(new Date() / 1000),
s: "W0RFXVN0ZXZlIGxpa2VzIGJpZyBidXR0cw==", // signature of some kind s: "W0RFXVN0ZXZlIGxpa2VzIGJpZyBidXR0cw==", // signature of some kind