-
Notifications
You must be signed in to change notification settings - Fork 3
/
pwreset.tpl
62 lines (41 loc) · 2.15 KB
/
pwreset.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
56
57
58
59
60
61
62
<div class="logincontainer">
{include file="$template/includes/pageheader.tpl" title=$LANG.pwreset}
{if $loggedin}
{include file="$template/includes/alert.tpl" type="error" msg=$LANG.noPasswordResetWhenLoggedIn textcenter=true}
{else}
{if $success}
{include file="$template/includes/alert.tpl" type="success" msg=$LANG.pwresetvalidationsent textcenter=true}
<p>{$LANG.pwresetvalidationcheckemail}</p>
{else}
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" msg=$errormessage textcenter=true}
{/if}
{if $securityquestion}
<p>{$LANG.pwresetsecurityquestionrequired}</p>
<form method="post" action="pwreset.php" class="form-stacked">
<input type="hidden" name="action" value="reset" />
<input type="hidden" name="email" value="{$email}" />
<div class="form-group">
<label for="inputAnswer">{$securityquestion}</label>
<input type="text" name="answer" class="form-control" id="inputAnswer" autofocus>
</div>
<div class="form-group text-center">
<button type="submit" class="btn btn-primary">{$LANG.pwresetsubmit}</button>
</div>
</form>
{else}
<p>{$LANG.pwresetemailneeded}</p>
<form method="post" action="{$systemsslurl}pwreset.php" role="form">
<input type="hidden" name="action" value="reset" />
<div class="form-group">
<label for="inputEmail">{$LANG.loginemail}</label>
<input type="email" name="email" class="form-control" id="inputEmail" placeholder="{$LANG.enteremail}" autofocus>
</div>
<div class="form-group text-center">
<button type="submit" class="btn btn-primary">{$LANG.pwresetsubmit}</button>
</div>
</form>
{/if}
{/if}
{/if}
</div>