Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit e6b0681

Browse files
committed
fix: move auth-error inside form for login error display
1 parent 02ce713 commit e6b0681

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public/js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ function renderLoginPage() {
563563
</div>
564564
565565
<div id="login-email-form" style="display:none">
566-
<div class="auth-error"></div>
567566
<form id="login-form">
567+
<div class="auth-error"></div>
568568
<div class="form-group">
569569
<label for="login-email">Email</label>
570570
<input type="email" id="login-email" placeholder="your@email.com" required autocomplete="webauthn" />
@@ -747,7 +747,7 @@ async function setupPasskeyAutofill() {
747747

748748
async function handlePasskeyLogin() {
749749
const btn = $('#login-passkey-btn');
750-
const errorEl = $('#login-email-form .auth-error');
750+
const errorEl = $('#login-form .auth-error');
751751
if (errorEl) errorEl.classList.remove('show');
752752

753753
btn.disabled = true;

0 commit comments

Comments
 (0)