mail lowcase

This commit is contained in:
2026-03-17 00:28:10 +01:00
parent 69349a8788
commit 260e460ded
3 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ export default function LoginPage() {
const res = await fetch("/api/auth/login", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ email, password }),
body: JSON.stringify({ email: email.toLowerCase(), password }),
});
const data = await res.json();
if (data.success && data.payload?.token) {

View File

@@ -32,7 +32,7 @@ export default function RegisterPage() {
const res = await fetch("/api/auth/register", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ username, email, password, confirmPassword }),
body: JSON.stringify({ username, email: email.toLowerCase(), password, confirmPassword }),
});
const data = await res.json();
if (data.success && data.payload?.token) {