mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-26 05:27:33 +02:00
06c5e686a1
- Remove internal/view - Remove internal/flashutil
26 lines
1.2 KiB
Smarty
26 lines
1.2 KiB
Smarty
<form action="/recover/complete" method="POST">
|
|
<input type="hidden" name="token" value="{{.Token}}" />
|
|
{{$passwordErrs := .ErrMap.password}}
|
|
<div class="form-group{{if $passwordErrs}} has-error{{end}}">
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
|
<input class="form-control" type="text" name="password" placeholder="Password" required />
|
|
</div>
|
|
{{range $err := $passwordErrs}}
|
|
<span class="help-block">{{print $err}}</span>
|
|
{{end}}
|
|
</div>
|
|
|
|
{{$confirmPasswordErrs := .ErrMap.confirmPassword}}
|
|
<div class="form-group{{if $confirmPasswordErrs}} has-error{{end}}">
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
|
<input class="form-control" type="text" name="confirmPassword" placeholder="Confirm Password" required />
|
|
</div>
|
|
{{range $err := $confirmPasswordErrs}}
|
|
<span class="help-block">{{print $err}}</span>
|
|
{{end}}
|
|
</div>
|
|
<button class="btn btn-primary btn-block" type="submit">Submit</button>
|
|
<input type="hidden" name="{{.XSRFName}}" value="{{.XSRFToken}}" />
|
|
</form> |