photo_server_json_con_aves22/public/a
2026-04-18 20:14:42 +02:00

10 lines
307 B
Text

- async function login(username, password) {
+ async function login(email, password) {
const res = await fetch("/auth/login", {
method: "POST",
headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ username, password })
+ body: JSON.stringify({ email, password })
});
}