fix: [internal] fixed the hacky removal of passwords on returned user objects for /users/edit

- this commit gets 1*
pull/5443/head
iglocska 2019-11-29 16:12:33 +01:00
parent a48c5499f3
commit ff333ccb85
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class UsersController extends AppController
// Save the data
if ($this->_isRest()) {
if (!empty($this->request->data['User']['password'])) {
if ($this->request->data['User']['password'] === '****') {
if ($this->request->data['User']['password'] === '*****') {
unset($this->request->data['User']['password']);
} else {
$currentUser['User']['confirm_password'] = $this->request->data['User']['password'];