Skip to content

Commit 579cdd6

Browse files
committed
[TASK] Move change password code field to top of form
Refs #77 (cherry picked from commit 82ed044)
1 parent d889ef9 commit 579cdd6

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • Resources/Private/Templates/Password

Resources/Private/Templates/Password/Edit.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ <h3><f:translate key="validationErrorHeader" /> </h3>
3232
<f:form action="update" name="changePassword" object="{changePassword}" method="post">
3333
<f:form.hidden property="changeHmac" />
3434
<fieldset>
35-
<f:if condition="{settings.requireCurrentPassword.enabled} == 1">
36-
<div>
37-
<label for="currentPassword">
38-
<f:translate key="currentPassword" />
39-
</label>
40-
<f:form.password id="currentPassword" property="currentPassword" />
41-
</div>
42-
</f:if>
4335
<f:if condition="{settings.requireChangePasswordCode.enabled} == 1">
4436
<div>
4537
<label for="changePasswordCode">
@@ -49,6 +41,14 @@ <h3><f:translate key="validationErrorHeader" /> </h3>
4941
<f:link.action action="sendChangePasswordCode"><f:translate key="link.sendChangePasswordCode" /></f:link.action>
5042
</div>
5143
</f:if>
44+
<f:if condition="{settings.requireCurrentPassword.enabled} == 1">
45+
<div>
46+
<label for="currentPassword">
47+
<f:translate key="currentPassword" />
48+
</label>
49+
<f:form.password id="currentPassword" property="currentPassword" />
50+
</div>
51+
</f:if>
5252
<div>
5353
<label for="password1">
5454
<f:translate key="password" />

0 commit comments

Comments
 (0)