Skip to content

Commit dfe8457

Browse files
committed
fix(auth): show noscript warning on OTP step
1 parent f179fe1 commit dfe8457

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/auth-service/src/routes/login-page.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,11 @@ export function renderLoginPage(opts: {
669669
</div>
670670
<button type="submit" class="btn-primary" disabled>Continue</button>
671671
</form>
672-
<noscript><div class="flash-msg error">JavaScript is required to sign in with email.</div></noscript>
673672
${handleLoginButtonHtml}
674673
</div>
675674
675+
<noscript><div class="flash-msg error">JavaScript is required to sign in with email.</div></noscript>
676+
676677
<!-- Step 2: OTP entry (calls better-auth verifyOtp) -->
677678
<div id="step-otp" class="step-otp${opts.initialStep === 'otp' ? ' active' : ''}">
678679
<p class="subtitle" id="otp-subtitle">${

0 commit comments

Comments
 (0)