This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/static/html/reset-password.html
2015-08-18 11:26:57 -07:00

28 lines
718 B
HTML

<html>
<body>
{{ if .Success }}
Yay, you changed your password!
{{ else }}
{{ $lenError := len .Error }}
{{ $hasError := ne $lenError 0 }}
{{ if $hasError }}
<h3>
{{ .Error }}
</h3>
<div>
{{ .Message }}
</div>
{{ end }}
{{ if not .DontShowForm }}
<form id="resetPasswordForm" method="POST" action="/reset-password">
<label for="password">Password</label>
<input type="password" name="password" value="" />
<br/>
<button>Submit</button>
<input type="hidden" name="token" value="{{ .Token }}" />
</form>
{{ end }}
{{ end }}
<body>
</html>