/
forgot.hbs
38 lines (32 loc) · 1.27 KB
/
forgot.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/users/login">Sign in</a></li>
<li class="active">Password Reset</li>
</ol>
<h2>Reset your password?</h2>
<hr>
{{#if ldap.enabled}}
<p>
Accounts are managed through LDAP.
<br/>
<br/>
<a href="{{ldap.passwordresetlink}}">Reset Password</a>
</p>
{{else}}
<p>Please provide the username or email address that you used when you signed up for your Mailtrain account.</p>
<p>We will send you an email that will allow you to reset your password.</p>
<form class="form-horizontal" role="login" method="post" action="/users/forgot">
<input type="hidden" name="_csrf" value="{{csrfToken}}">
<div class="form-group">
<label for="usernameMain" class="col-sm-2 control-label">Username</label>
<div class="col-xs-4">
<input type="text" class="form-control" name="username" id="usernameMain" placeholder="Username or email address" autofocus required>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-xs-4">
<button type="submit" class="btn btn-primary">Send verification email</button>
</div>
</div>
</form>
{{/if}}