Fix disable user option

This commit is contained in:
Anaggh S 2018-04-15 12:58:49 +05:30
parent 34f23eb180
commit b92f6aaee3
1 changed files with 1 additions and 1 deletions

View File

@ -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();