commit
4f3d8dab94
|
@ -88,7 +88,7 @@ class dbUsers extends dbJSON
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set a new password
|
// Set a new password
|
||||||
if (!empty($args['password'])) {
|
if (!empty($args['password']) && $args['password'] !== '!') {
|
||||||
$user['salt'] = $this->generateSalt();
|
$user['salt'] = $this->generateSalt();
|
||||||
$user['password'] = $this->generatePasswordHash($args['password'], $user['salt']);
|
$user['password'] = $this->generatePasswordHash($args['password'], $user['salt']);
|
||||||
$user['tokenAuth'] = $this->generateAuthToken();
|
$user['tokenAuth'] = $this->generateAuthToken();
|
||||||
|
|
Loading…
Reference in New Issue