navid/veinsforge / d0b6604355dd0e768410182676de2799c6333bcc13eb8905bd154fc149230712 / internal/web/templates/signup.html
signup.html
← internal/web/templates · 1261 bytes · raw · download
{{define "content"}}
<h1>Create account</h1>
<p>Accounts are local to this server. Add an Ed25519 key after signing up to clone and push over the native protocol.</p>
<form class="form-narrow" method="post" action="/signup">
<input type="hidden" name="csrf" value="{{.CSRF}}">
<label>Username
<input name="username" value="{{.Data.Username}}" autocomplete="username" required minlength="3" maxlength="32" pattern="[A-Za-z0-9][A-Za-z0-9_-]{1,30}[A-Za-z0-9]">
<small>3-32 characters: letters, digits, hyphens, underscores.</small>
</label>
<label>Display name
<input name="display_name" value="{{.Data.DisplayName}}" maxlength="80">
</label>
<label>Email <span class="muted">(optional)</span>
<input type="email" name="email" value="{{.Data.Email}}" autocomplete="email" maxlength="254">
</label>
<label>Password
<input type="password" name="password" autocomplete="new-password" required minlength="10" maxlength="256">
</label>
<label>Confirm password
<input type="password" name="confirm" autocomplete="new-password" required minlength="10" maxlength="256">
</label>
<button class="btn" type="submit">Create account</button>
</form>
<p class="small">Already registered? <a href="/login">Sign in</a>.</p>
{{end}}