47 lines
2.1 KiB
Smarty
47 lines
2.1 KiB
Smarty
<div class="row">
|
|
<form class="col-md-4" role="form" method="POST">
|
|
<input type="hidden" name="token" value="{$smarty.request.token|escape}">
|
|
<input type="hidden" name="page" value="{$smarty.request.page|escape}">
|
|
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
|
|
<input type="hidden" name="ctoken" value="{$CTOKEN|escape|default:""}" />
|
|
|
|
<input type="hidden" name="do" value="resetPassword">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Password reset</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<fieldset>
|
|
<label>New Password</label>
|
|
<input class="form-control" type="password" name="newPassword" required>
|
|
</fieldset>
|
|
</div>
|
|
<div class="form-group">
|
|
<fieldset>
|
|
<label>Repeat New Password</label>
|
|
<input class="form-control" type="password" name="newPassword2" required>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
<div class="panel-footer">
|
|
{nocache}
|
|
<input type="hidden" name="cp_token" value="{$smarty.request.cp_token|escape|default:""}">
|
|
<input type="hidden" name="utype" value="change_pw">
|
|
{if $GLOBAL.twofactor.enabled && $GLOBAL.twofactor.options.changepw}
|
|
{if $CHANGEPASSSENT == 1 && $CHANGEPASSUNLOCKED == 1}
|
|
<input type="submit" value="Change Password" class="btn btn-warning btn-sm">
|
|
{elseif $CHANGEPASSSENT == 0 && $CHANGEPASSUNLOCKED == 1 || $CHANGEPASSSENT == 1 && $CHANGEPASSUNLOCKED == 0}
|
|
<input type="submit" value="Change Password" class="btn btn-warning btn-sm" disabled="disabled">
|
|
{elseif $CHANGEPASSSENT == 0 && $CHANGEPASSUNLOCKED == 0}
|
|
<input type="submit" value="Unlock" class="btn btn-warning btn-sm" name="unlock">
|
|
{/if}
|
|
{else}
|
|
<input type="submit" value="Change Password" class="btn btn-warning btn-sm">
|
|
{/if}
|
|
{/nocache}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|