Merge pull request #684 from anaggh/master

Fix disable user option
This commit is contained in:
Diego Najar 2018-04-16 15:59:38 +02:00 committed by GitHub
commit 4f3d8dab94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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