attempting to fix legacy user accounts with less than 20 characters.

This commit is contained in:
2026-05-22 15:34:23 +02:00
parent 6c6764202e
commit df312009b8
5 changed files with 28 additions and 8 deletions

View File

@@ -195,7 +195,7 @@
loginForm.addEventListener('submit', async (e) => {
e.preventDefault();
const formData = new FormData(loginForm);
if (formData.get('password') && formData.get('password').length < 20) {
if (!formData.get('password')) {
let errDiv = loginForm.querySelector('.flash-error');
if (!errDiv) { errDiv = document.createElement('div'); errDiv.className = 'flash-error'; loginForm.insertBefore(errDiv, loginForm.firstChild); }
errDiv.textContent = 'Invalid username or password.';