New Sign in

fierj

Public

Tiny personal git forge

← fierj / templates / auth_setup.html
{{template "head" .}}
{{define "title"}}setup - fierj{{end}}

<div class="auth-card">
  <h1 style="margin-bottom:var(--space-sm);">Welcome to fierj</h1>
  <p class="subtitle">
    Create the first admin account to get started.
  </p>

  {{if .Error}}
  <div class="alert-danger">
    {{.Error}}
  </div>
  {{end}}

  <form method="post">
    <input type="hidden" name="csrf_token" value="{{.CSRF}}">
    <div class="form-group">
      <label for="username">Username</label>
      <input type="text" id="username" name="username" autofocus required>
    </div>
    <div class="form-group">
      <label for="password">Password</label>
      <input type="password" id="password" name="password" required minlength="6">
    </div>
    <div class="form-group">
      <label for="confirm">Confirm password</label>
      <input type="password" id="confirm" name="confirm" required minlength="6">
    </div>
    <div class="form-group">
      <label for="ssh_key">SSH public key (recommended)</label>
      <textarea id="ssh_key" name="ssh_key" rows="3" placeholder="ssh-ed25519 AAAAC3..."></textarea>
      <span class="field-hint">Required for git push. You can add it later on the Users page.</span>
    </div>
    <button type="submit" class="btn">Create account</button>
  </form>
</div>
{{template "foot" .}}