forked from WHMCS/templates-six
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientareasecurity.tpl
132 lines (98 loc) · 4.41 KB
/
clientareasecurity.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{if $twofaavailable}
{if $twofaactivation}
<div id="twofaactivation">
{$twofaactivation}
</div>
{else}
<h2>{$LANG.twofactorauth}</h2>
{include file="$template/includes/alert.tpl" type="warning" msg="{lang key="clientAreaSecurityTwoFactorAuthRecommendation"}"}
<p>
{$LANG.twofaactivationintro}
</p>
<br />
<form method="post" action="clientarea.php?action=security">
<input type="hidden" name="2fasetup" value="1" />
<p align="center">
{if $twofastatus}
<input type="submit" value="{$LANG.twofadisableclickhere}" class="btn btn-danger" />
{else}
<input type="submit" value="{$LANG.twofaenableclickhere}" class="btn btn-success" />
{/if}
</p>
</form>
<br />
<br />
{/if}
{/if}
{if $securityquestionsenabled && !$twofaactivation}
<h2>{$LANG.clientareanavsecurityquestions}</h2>
{if $successful}
{include file="$template/includes/alert.tpl" type="success" msg=$LANG.changessavedsuccessfully textcenter=true}
{elseif $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage}
{elseif $nocurrent}
{include file="$template/includes/alert.tpl" type="info" msg="{lang key="clientAreaSecurityNoSecurityQuestions"}"}
{else}
{include file="$template/includes/alert.tpl" type="info" msg="{lang key="clientAreaSecuritySecurityQuestionOtherError"}"}
{/if}
<form role="form" method="post" action="{$smarty.server.PHP_SELF}?action=security">
{if !$nocurrent}
<div class="form-group">
<label for="inputCurrentAns" class="control-label">{$currentquestion}</label>
<input type="password" name="currentsecurityqans" id="inputCurrentAns" class="form-control" />
</div>
{/if}
<div class="form-group">
<label for="inputSecurityQid" class="control-label">{$LANG.clientareasecurityquestion}</label>
<select name="securityqid" id="inputSecurityQid" class="form-control">
{foreach key=num item=question from=$securityquestions}
<option value={$question.id}>{$question.question}</option>
{/foreach}
</select>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="inputSecurityAns1" class="control-label">{$LANG.clientareasecurityanswer}</label>
<input type="password" name="securityqans" id="inputSecurityAns1" class="form-control" />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="inputSecurityAns2" class="control-label">{$LANG.clientareasecurityconfanswer}</label>
<input type="password" name="securityqans2" id="inputSecurityAns2" class="form-control" />
</div>
</div>
</div>
<p class="text-center">
<input class="btn btn-primary" type="submit" name="submit" value="{$LANG.clientareasavechanges}" />
<input class="btn btn-default" type="reset" value="{$LANG.cancel}" />
</p>
</form>
<br />
<br />
{/if}
{if $showSsoSetting && !$twofaactivation}
<h2>{$LANG.sso.title}</h2>
{include file="$template/includes/alert.tpl" type="success" msg=$LANG.sso.summary}
<form id="frmSingleSignOn">
<input type="hidden" name="token" value="{$token}" />
<input type="hidden" name="action" value="security" />
<input type="hidden" name="toggle_sso" value="1" />
<div class="margin-10">
<input type="checkbox" name="allow_sso" class="toggle-switch-success" id="inputAllowSso"{if $isSsoEnabled} checked{/if}>
<span id="ssoStatusTextEnabled"{if !$isSsoEnabled} class="hidden"{/if}>
{$LANG.sso.enabled}
</span>
<span id="ssoStatusTextDisabled"{if $isSsoEnabled} class="hidden"{/if}>
{$LANG.sso.disabled}
</span>
</div>
</form>
<p>{$LANG.sso.disablenotice}</p>
<link href="{$BASE_PATH_CSS}/bootstrap-switch.min.css" rel="stylesheet">
<script src="{$BASE_PATH_JS}/bootstrap-switch.min.js"></script>
<br />
<br />
{/if}