-
Notifications
You must be signed in to change notification settings - Fork 0
/
forgottenpassword.tpl
executable file
·55 lines (55 loc) · 2.04 KB
/
forgottenpassword.tpl
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{if isset($error) && $error != ''}
<div class="alert alert-danger">{$error}</div>
{/if}
{if isset($notice) && $notice != ''}
<div class="alert alert-info">{$notice}</div>
{/if}
{if isset($sent) && $sent != ''}
<div class="alert alert-info">A link to reset your password has been sent to your e-mail account.</div>
{/if}
{if $confirmed == '' && $sent == ''}
<body class="login-page">
<div class="login-box">
<div class="login-logo">
<a href="{$serverroot}"><b{$site->title}</b></a>
</div><!-- /.login-logo -->
<div class="login-box-body">
<p class="login-box-msg">Please enter the email address you used to register and we will send an email to
reset your password. If you
cannot remember your email, or no longer have access to it, please <a
href="{$smarty.const.WWW_TOP}/contact-us">contact
us</a>.</p>
<form action="forgottenpassword?action=submit" method="post">
{{csrf_field()}}
<div class="form-group has-feedback">
<input autocomplete="off" id="email" name="email" value="{$email}" type="email" class="form-control"
placeholder="Email"/>
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input autocomplete="off" id="apikey" name="apikey" value="{$apikey}" type="text"
class="form-control" placeholder="Apikey"/>
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-6">
{if {env('NOCAPTCHA_ENABLED')} == 1 && !empty({env('NOCAPTCHA_SITEKEY')}) && !empty({env('NOCAPTCHA_SECRET')})}
{NoCaptcha::display()}{NoCaptcha::renderJs()}
{/if}
</div><!-- /.col -->
<hr>
<div class="col-xs-12">
<button type="submit" class="btn btn-primary btn-block btn-flat">Request Password Reset</button>
</div><!-- /.col -->
</div>
</form>
</body>
{elseif $sent != ''}
<p>
A password reset request has been sent to your email.
</p>
{else}
<p>
Your password has been reset and sent to you in an email.
</p>
{/if}