mail lowcase
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user