Fix disable user option
This commit is contained in:
parent
34f23eb180
commit
b92f6aaee3
|
@ -88,7 +88,7 @@ class dbUsers extends dbJSON
|
|||
}
|
||||
|
||||
// Set a new password
|
||||
if (!empty($args['password'])) {
|
||||
if (!empty($args['password']) && $args['password'] !== '!') {
|
||||
$user['salt'] = $this->generateSalt();
|
||||
$user['password'] = $this->generatePasswordHash($args['password'], $user['salt']);
|
||||
$user['tokenAuth'] = $this->generateAuthToken();
|
||||
|
|
Loading…
Reference in New Issue