Skip to content

Commit 706ce20

Browse files
author
Andres Campanario
committed
change user not found message returned to prevent enumeration attack
1 parent aefe695 commit 706ce20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/Traits/PasswordManagementTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function changePassword($id = null)
120120
}
121121
}
122122
} catch (UserNotFoundException $exception) {
123-
$this->Flash->error(__d('cake_d_c/users', 'User was not found 1'));
123+
$this->Flash->error(__d('cake_d_c/users', 'User was not found'));
124124
} catch (WrongPasswordException $wpe) {
125125
$this->Flash->error($wpe->getMessage());
126126
} catch (Exception $exception) {

0 commit comments

Comments
 (0)