mirror of https://github.com/MISP/MISP
fix: [internal] fixed the hacky removal of passwords on returned user objects for /users/edit
- this commit gets 1*pull/5443/head
parent
a48c5499f3
commit
ff333ccb85
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue