1{include file="$template/includes/flashmessage.tpl"}
2
3<p>{lang key='userManagement.settings'}</p>
4
5{if $linkableProviders }
6 <h2>
7 {lang key='remoteAuthn.titleLinkedAccounts'}
8 </h2>
9
10 {include file="$template/includes/linkedaccounts.tpl" linkContext="clientsecurity" }
11
12 <br>
13
14 {include file="$template/includes/linkedaccounts.tpl" linkContext="linktable" }
15
16 <br>
17{/if}
18
19{if $securityQuestions->count() > 0}
20 <h2>{$LANG.clientareanavsecurityquestions}</h2>
21
22 <form method="post" action="{routePath('user-security-question')}">
23 {if $user->hasSecurityQuestion()}
24 <div class="form-group">
25 <label for="inputCurrentAns" class="control-label">{$user->getSecurityQuestion()}</label>
26 <input type="password" name="currentsecurityqans" id="inputCurrentAns" class="form-control" autocomplete="off" />
27 </div>
28 {/if}
29
30 <div class="form-group">
31 <label for="inputSecurityQid" class="control-label">{$LANG.clientareasecurityquestion}</label>
32 <select name="securityqid" id="inputSecurityQid" class="form-control">
33 {foreach $securityQuestions as $question}
34 <option value="{$question->id}">
35 {$question->question}
36 </option>
37 {/foreach}
38 </select>
39 </div>
40
41 <div class="row">
42 <div class="col-md-6">
43 <div class="form-group">
44 <label for="inputSecurityAns1" class="control-label">{$LANG.clientareasecurityanswer}</label>
45 <input type="password" name="securityqans" id="inputSecurityAns1" class="form-control" autocomplete="off" />
46 </div>
47 </div>
48 <div class="col-md-6">
49 <div class="form-group">
50 <label for="inputSecurityAns2" class="control-label">{$LANG.clientareasecurityconfanswer}</label>
51 <input type="password" name="securityqans2" id="inputSecurityAns2" class="form-control" autocomplete="off" />
52 </div>
53 </div>
54 </div>
55
56 <p>
57 <input class="btn btn-primary" type="submit" name="submit" value="{$LANG.clientareasavechanges}" />
58 <input class="btn btn-default" type="reset" value="{$LANG.cancel}" />
59 </p>
60 </form>
61{/if}
62
63{if $twoFactorAuthAvailable}
64 <h2>{$LANG.twofactorauth}</h2>
65
66 <p class="twofa-config-link disable{if !$twoFactorAuthEnabled} hidden{/if}">
67 {$LANG.twofacurrently} <strong>{$LANG.enabled|strtolower}</strong>
68 </p>
69 <p class="twofa-config-link enable{if $twoFactorAuthEnabled} hidden{/if}">
70 {$LANG.twofacurrently} <strong>{$LANG.disabled|strtolower}</strong>
71 </p>
72
73 {if $twoFactorAuthRequired}
74 {include file="$template/includes/alert.tpl" type="warning" msg="{lang key="clientAreaSecurityTwoFactorAuthRequired"}"}
75 {else}
76 {include file="$template/includes/alert.tpl" type="warning" msg="{lang key="clientAreaSecurityTwoFactorAuthRecommendation"}"}
77 {/if}
78
79 <a href="{routePath('account-security-two-factor-disable')}" class="btn btn-danger open-modal twofa-config-link disable{if !$twoFactorAuthEnabled} hidden{/if}" data-modal-title="{$LANG.twofadisable}" data-modal-class="twofa-setup" data-btn-submit-label="{lang key='twofadisable'}" data-btn-submit-color="danger" data-btn-submit-id="btnDisable2FA">
80 {$LANG.twofadisableclickhere}
81 </a>
82 <a href="{routePath('account-security-two-factor-enable')}" class="btn btn-success open-modal twofa-config-link enable{if $twoFactorAuthEnabled} hidden{/if}" data-modal-title="{$LANG.twofaenable}" data-modal-class="twofa-setup" data-btn-submit-id="btnEnable2FA">
83 {$LANG.twofaenableclickhere}
84 </a>
85
86 <br />
87 <br />
88{/if}
89