source: Klonkt/src/views/pages/auth-reset.ejs@ 0fa59c3

main
Last change on this file since 0fa59c3 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
RevLine 
[7bc636b]1<div class="container auth-page">
[4885eab]2 <h1><%= t('arst.title') %></h1>
[7bc636b]3
4 <% if (!token) { %>
5 <% if (error) { %><div class="alert alert-error"><%= error %></div><% } %>
6 <p class="auth-link">
[4885eab]7 <a href="/auth/reset-request"><%= t('arst.request_new') %></a>
[7bc636b]8 &middot;
[4885eab]9 <a href="/auth/login"><%= t('arst.back_login') %></a>
[7bc636b]10 </p>
11 <% } else { %>
[4885eab]12 <p class="auth-tagline"><%- t('arst.set_for', { username: '<strong>' + username + '</strong>' }) %></p>
[d774679]13 <%# arst.set_for contains {username}; rendered with raw output because username is wrapped in a strong tag %>
[7bc636b]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>
[4885eab]19 <span><%= t('arst.new_pw') %></span>
[7bc636b]20 <input type="password" name="new_password" required minlength="8" autofocus autocomplete="new-password">
21 </label>
22 <label>
[4885eab]23 <span><%= t('arst.confirm_pw') %></span>
[7bc636b]24 <input type="password" name="confirm" required minlength="8" autocomplete="new-password">
25 </label>
[4885eab]26 <button type="submit" class="btn btn-primary"><%= t('arst.submit') %></button>
[7bc636b]27 </form>
28 <% } %>
29</div>
Note: See TracBrowser for help on using the repository browser.