Files
vpn-panel/web/templates/register.html
T

31 lines
1.5 KiB
HTML

{{define "content"}}
<section class="auth-page">
<div class="auth-card">
<h1>Регистрация администратора</h1>
<p class="auth-sub">Допускается только <strong>один</strong> администратор. После создания регистрация будет закрыта.</p>
{{if .CanRegister}}
<form method="post" action="/register" class="form">
<label>
<span>Email</span>
<input type="email" name="email" required autocomplete="email" placeholder="admin@example.com">
</label>
<label>
<span>Пароль (мин. 8 символов)</span>
<input type="password" name="password" required minlength="8" autocomplete="new-password">
</label>
<label>
<span>Подтверждение пароля</span>
<input type="password" name="password_confirm" required minlength="8" autocomplete="new-password">
</label>
<button type="submit" class="btn btn-primary btn-block">Создать администратора</button>
</form>
{{else}}
<p class="auth-warn">Администратор уже существует.</p>
<a href="/login" class="btn btn-ghost btn-block">Войти</a>
{{end}}
<p class="auth-footer"><a href="/">← На главную</a></p>
</div>
</section>
{{end}}