forked from mystiq/dex
0cc0c73676
fixes: #502 Add a new template function called `absPath` that converts relative paths to absolute paths based on the issuerURL. The template function can be used in templates like: ````html <a href="{{ .MyRelativePath | absPath }}"> ````
37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
{{ template "header.html" }}
|
|
|
|
<div class="panel">
|
|
{{ if .EmailSent }}
|
|
|
|
<h2 class="heading">Thank you, please check your email!</h2>
|
|
<div class="explain">
|
|
{{ .Email }} has been sent an email with instructions to reset your password.
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<h2 class="heading">Reset your password </h2>
|
|
<div class="explain">We will send you an email with a link to reset your password.</div>
|
|
|
|
<form id="sendResetPasswordForm" method="POST" action="{{ "/send-reset-password" | absPath }}">
|
|
|
|
<div class="form-row">
|
|
<div class="input-desc">
|
|
<label for="email">Email Address</label>
|
|
</div>
|
|
<input required id="email" class="input-box" type="text" name="email" placeholder="email" value="" autofocus />
|
|
</div>
|
|
|
|
{{ if .Error }}
|
|
<div class="error-box">{{ .Message }}</div>
|
|
{{ end }}
|
|
|
|
<button type="submit" class="btn btn-primary">Send Reset Link</button>
|
|
<input type="hidden" name="redirect_uri" value="{{ .RedirectURL }}" />
|
|
<input type="hidden" name="client_id" value="{{ .ClientID }}" />
|
|
</form>
|
|
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ template "footer.html" }}
|