29 lines
1.5 KiB
Cheetah
29 lines
1.5 KiB
Cheetah
{{define "title"}}Account aktivieren{{end}}
|
|
|
|
{{define "main"}}
|
|
<section class='panel narrow'>
|
|
<h2>Account aktivieren</h2>
|
|
<p>Gib den Aktivierungstoken aus deiner E-Mail ein, um deinen Account freizuschalten.</p>
|
|
{{$form := .Form}}
|
|
{{with $form.Message}}<p class='form-message error'>{{.}}</p>{{end}}
|
|
<form action='{{webPath "activate"}}' method='POST'>
|
|
<input type='hidden' name='csrf_token' value='{{.CSRFToken}}'>
|
|
<label for='token'>Aktivierungstoken</label>
|
|
<input id='token' name='token' type='text' value='{{$form.Token}}' autocomplete='one-time-code' autocapitalize='characters' spellcheck='false' required>
|
|
{{with index $form.Errors "token"}}<p class='field-error'>{{.}}</p>{{end}}
|
|
|
|
{{if $form.SetPassword}}
|
|
<input type='hidden' name='set_password' value='true'>
|
|
<label for='password'>Passwort festlegen</label>
|
|
<input id='password' name='password' type='password' minlength='8' maxlength='72' autocomplete='new-password' required>
|
|
{{with index $form.Errors "password"}}<p class='field-error'>{{.}}</p>{{end}}
|
|
<label for='password-confirm'>Passwort wiederholen</label>
|
|
<input id='password-confirm' name='password_confirm' type='password' minlength='8' maxlength='72' autocomplete='new-password' required>
|
|
{{with index $form.Errors "password_confirm"}}<p class='field-error'>{{.}}</p>{{end}}
|
|
{{end}}
|
|
|
|
<button type='submit'>Account aktivieren</button>
|
|
</form>
|
|
</section>
|
|
{{end}}
|