Login now based on email
Build LinkLog Development Image / development-image (push) Successful in 10s

This commit is contained in:
2026-08-26 15:03:48 +02:00
parent dd44b380ce
commit 079eb146f6
12 changed files with 64 additions and 40 deletions
+3 -3
View File
@@ -3,7 +3,6 @@
const form = document.querySelector('#login-form');
const status = document.querySelector('#login-status');
const otpInput = document.querySelector('#otp');
form.addEventListener('submit', async (event) => {
event.preventDefault();
@@ -14,8 +13,9 @@ form.addEventListener('submit', async (event) => {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
...Object.fromEntries(new FormData(form)),
otp: otpInput.value.trim() || null,
email: form.elements.email.value.trim(),
password: form.elements.password.value,
otp: form.elements.otp.value.trim() || null,
}),
});