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

29 lines
718 B
HTML
Raw Normal View History

2015-08-18 05:57:27 +05:30
<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>