Some checks failed
Build Images and Deploy / Update-PROD-Stack (push) Failing after 14s
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
<%- include('../partials/header') %>
|
|
|
|
<div class="container-narrow" style="padding-top: 3rem;">
|
|
<div class="card">
|
|
<div class="card-header">Register</div>
|
|
|
|
<% if (error) { %>
|
|
<div class="alert alert-danger error"><%= error %></div>
|
|
<% } %>
|
|
|
|
<form method="POST" action="/auth/register">
|
|
<div class="form-group">
|
|
<label for="username">Username</label>
|
|
<input type="text" id="username" name="username" class="form-control" required autofocus
|
|
minlength="3" maxlength="24" pattern="[a-zA-Z0-9_-]+" autocomplete="username">
|
|
<div class="form-hint">3-24 characters: letters, numbers, hyphens, underscores</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" class="form-control" required minlength="6" autocomplete="new-password">
|
|
<div class="form-hint">At least 6 characters</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password_confirm">Confirm Password</label>
|
|
<input type="password" id="password_confirm" name="password_confirm" class="form-control" required minlength="6" autocomplete="new-password">
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary" style="width: 100%; justify-content: center;">Create Account</button>
|
|
</form>
|
|
|
|
<p style="text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--muted);">
|
|
Already have an account? <a href="/auth/login">Login</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<%- include('../partials/footer') %>
|