main
|
Last change
on this file since ae924a2 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.0 KB
|
| Line | |
|---|
| 1 | <div class="container auth-page">
|
|---|
| 2 | <h1>Reset password</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">Request a new reset link</a>
|
|---|
| 8 | ·
|
|---|
| 9 | <a href="/auth/login">Back to login</a>
|
|---|
| 10 | </p>
|
|---|
| 11 | <% } else { %>
|
|---|
| 12 | <p class="auth-tagline">Set a new password for <strong><%= username %></strong>.</p>
|
|---|
| 13 |
|
|---|
| 14 | <% if (error) { %><div class="alert alert-error"><%= error %></div><% } %>
|
|---|
| 15 |
|
|---|
| 16 | <form method="post" action="/auth/reset/<%= token %>" class="auth-form">
|
|---|
| 17 | <label>
|
|---|
| 18 | <span>New password (min 8 chars)</span>
|
|---|
| 19 | <input type="password" name="new_password" required minlength="8" autofocus autocomplete="new-password">
|
|---|
| 20 | </label>
|
|---|
| 21 | <label>
|
|---|
| 22 | <span>Confirm new password</span>
|
|---|
| 23 | <input type="password" name="confirm" required minlength="8" autocomplete="new-password">
|
|---|
| 24 | </label>
|
|---|
| 25 | <button type="submit" class="btn btn-primary">Set password</button>
|
|---|
| 26 | </form>
|
|---|
| 27 | <% } %>
|
|---|
| 28 | </div>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.