source: Klonkt/src/views/pages/auth-reset.ejs@ 9a585bf

main
Last change on this file since 9a585bf was d774679, checked in by Robin Genis <roboburr@…>, 3 months ago

fix: auth-reset.ejs EJS comment broke compile (nested <% in <%# comment)

The Dutch comment contained a literal <%- and <strong>, which the EJS parser
read as a nested open tag → 'no matching close tag'. Reworded (English, no
nested tags). Pre-existing latent bug surfaced by the comment-translation pass.

Co-Authored-By: Claude <noreply@…>

  • Property mode set to 100644
File size: 1.2 KB
Line 
1<div class="container auth-page">
2 <h1><%= t('arst.title') %></h1>
3
4 <% if (!token) { %>
5 <% if (error) { %><div class="alert alert-error"><%= error %></div><% } %>
6 <p class="auth-link">
7 <a href="/auth/reset-request"><%= t('arst.request_new') %></a>
8 &middot;
9 <a href="/auth/login"><%= t('arst.back_login') %></a>
10 </p>
11 <% } else { %>
12 <p class="auth-tagline"><%- t('arst.set_for', { username: '<strong>' + username + '</strong>' }) %></p>
13 <%# arst.set_for contains {username}; rendered with raw output because username is wrapped in a strong tag %>
14
15 <% if (error) { %><div class="alert alert-error"><%= error %></div><% } %>
16
17 <form method="post" action="/auth/reset/<%= token %>" class="auth-form">
18 <label>
19 <span><%= t('arst.new_pw') %></span>
20 <input type="password" name="new_password" required minlength="8" autofocus autocomplete="new-password">
21 </label>
22 <label>
23 <span><%= t('arst.confirm_pw') %></span>
24 <input type="password" name="confirm" required minlength="8" autocomplete="new-password">
25 </label>
26 <button type="submit" class="btn btn-primary"><%= t('arst.submit') %></button>
27 </form>
28 <% } %>
29</div>
Note: See TracBrowser for help on using the repository browser.