source: Klonkt/src/views/pages/auth-reset-request.ejs@ 7bc636b

main
Last change on this file since 7bc636b was 7bc636b, checked in by Robin <robin@…>, 4 months ago

Initial commit — PrutFolio v1 source (pulled from Hetzner /srv/prutfolio)

  • Property mode set to 100644
File size: 1.5 KB
Line 
1<div class="container auth-page">
2 <h1>Reset password</h1>
3
4 <% if (sent) { %>
5 <div class="alert alert-success">
6 If an account exists for that email, a reset link has been sent.
7 </div>
8 <% if (devResetUrl) { %>
9 <div class="alert alert-info">
10 <strong>Dev mode:</strong> reset link below (no email server configured).
11 <p style="margin: 0.5rem 0 0; word-break: break-all;">
12 <a href="<%= devResetUrl %>"><%= devResetUrl %></a>
13 </p>
14 </div>
15 <% } %>
16 <p class="auth-link"><a href="/auth/login">&larr; Back to login</a></p>
17 <% } else { %>
18 <p class="auth-tagline">Enter your email and we'll send a reset link.</p>
19
20 <% if (error) { %><div class="alert alert-error"><%= error %></div><% } %>
21
22 <form method="post" action="/auth/reset-request" class="auth-form">
23 <label>
24 <span>Email</span>
25 <input type="email" name="email" required autofocus autocomplete="email">
26 </label>
27 <button type="submit" class="btn btn-primary">Send reset link</button>
28 <p class="auth-link"><a href="/auth/login">&larr; Back to login</a></p>
29 </form>
30 <% } %>
31</div>
32
33<style>
34.auth-tagline { text-align: center; color: var(--ink-muted, var(--ink-soft)); margin-bottom: 1.5rem; }
35.alert-info { background: var(--paper-2); color: var(--ink); border: 1px solid var(--accent); border-radius: 5px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
36.auth-link-muted { font-size: 0.85rem; color: var(--ink-muted, var(--ink-soft)); }
37</style>
Note: See TracBrowser for help on using the repository browser.