Files
budget/views/setup.php
T
Ty Clifford b7eaa81501 -
2026-06-14 15:25:31 -04:00

15 lines
1.1 KiB
PHP

<div class="auth-card">
<p class="eyebrow">First run</p>
<h2>Create the administrator</h2>
<p class="muted">This account controls the planner, its modules, exports, and alert settings.</p>
<form method="post" class="stack-form">
<?= csrf_field() ?>
<input type="hidden" name="action" value="setup">
<label>Email address<input type="email" name="email" required autocomplete="email" placeholder="you@example.com"></label>
<label>Password<input type="password" name="password" required minlength="10" autocomplete="new-password" placeholder="At least 10 characters"></label>
<label>Confirm password<input type="password" name="password_confirmation" required minlength="10" autocomplete="new-password"></label>
<label class="check-row"><input type="checkbox" name="enable_2fa" value="1"><span><strong>Enable optional 2FA now</strong><small>You will receive a setup key after account creation.</small></span></label>
<button class="button primary full" type="submit">Create planner</button>
</form>
</div>