Skip to content

Commit 5e9fedd

Browse files
committed
Fixes.
1 parent 4e77404 commit 5e9fedd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/Sandbox/templates/ToolsExamples/password.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<?php
1717
$action = 'Register';
18-
if ($this->request->getAttribute('params')['action'] === 'passwordEdit') {
18+
if ($this->request->getParam('action') === 'passwordEdit') {
1919
$action = 'Edit';
2020
}
2121
?>
@@ -37,7 +37,7 @@
3737
</div>
3838

3939
<h3>Info</h3>
40-
<?php if ($action === 'password') { ?>
40+
<?php if ($action === 'Register') { ?>
4141
The pwd and pwd_repeat fields are both mandatory.
4242
<?php } else { ?>
4343
The password fields are optional, but as soon as the pwd field has content, both

0 commit comments

Comments
 (0)