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.1 KB
|
| Line | |
|---|
| 1 | <div class="container auth-page">
|
|---|
| 2 | <h1>Register</h1>
|
|---|
| 3 | <% if (error) { %><div class="alert alert-error"><%= error %></div><% } %>
|
|---|
| 4 | <form method="post" action="/auth/register" class="auth-form">
|
|---|
| 5 | <% if (typeof next !== 'undefined' && next) { %>
|
|---|
| 6 | <input type="hidden" name="next" value="<%= next %>">
|
|---|
| 7 | <% } %>
|
|---|
| 8 | <label>
|
|---|
| 9 | <span>Username (3-32 chars, letters/numbers/_-)</span>
|
|---|
| 10 | <input type="text" name="username" value="<%= username %>" required autofocus autocomplete="username" pattern="[a-zA-Z0-9_-]{3,32}">
|
|---|
| 11 | </label>
|
|---|
| 12 | <label>
|
|---|
| 13 | <span>Email</span>
|
|---|
| 14 | <input type="email" name="email" value="<%= email %>" required autocomplete="email">
|
|---|
| 15 | </label>
|
|---|
| 16 | <label>
|
|---|
| 17 | <span>Password (min 8 chars)</span>
|
|---|
| 18 | <input type="password" name="password" required minlength="8" autocomplete="new-password">
|
|---|
| 19 | </label>
|
|---|
| 20 | <button type="submit" class="btn btn-primary">Create account</button>
|
|---|
| 21 | <p class="auth-link">Already registered?
|
|---|
| 22 | <a href="/auth/login<%= (typeof next !== 'undefined' && next) ? '?next=' + encodeURIComponent(next) : '' %>">Login</a>
|
|---|
| 23 | </p>
|
|---|
| 24 | </form>
|
|---|
| 25 | </div>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.