mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [FIX] Fixes #170. Integer casting for boolean values on users management. Thanks to @maseht
This commit is contained in:
@@ -367,10 +367,10 @@ abstract class UserBase
|
||||
$data['notes'] = $this->_userNotes;
|
||||
$data['groupId'] = $this->_userGroupId;
|
||||
$data['profileId'] = $this->_userProfileId;
|
||||
$data['isAdminApp'] = $this->_userIsAdminApp;
|
||||
$data['isAdminAcc'] = $this->_userIsAdminAcc;
|
||||
$data['isDisabled'] = $this->_userIsDisabled;
|
||||
$data['isChangePass'] = $this->_userChangePass;
|
||||
$data['isAdminApp'] = intval($this->_userIsAdminApp);
|
||||
$data['isAdminAcc'] = intval($this->_userIsAdminAcc);
|
||||
$data['isDisabled'] = intval($this->_userIsDisabled);
|
||||
$data['isChangePass'] = intval($this->_userChangePass);
|
||||
$data['pass'] = $passdata['pass'];
|
||||
$data['salt'] = $passdata['salt'];
|
||||
|
||||
@@ -512,10 +512,10 @@ abstract class UserBase
|
||||
$data['notes'] = $this->_userNotes;
|
||||
$data['groupId'] = $this->_userGroupId;
|
||||
$data['profileId'] = $this->_userProfileId;
|
||||
$data['isAdminApp'] = $this->_userIsAdminApp;
|
||||
$data['isAdminAcc'] = $this->_userIsAdminAcc;
|
||||
$data['isDisabled'] = $this->_userIsDisabled;
|
||||
$data['isChangePass'] = $this->_userChangePass;
|
||||
$data['isAdminApp'] = intval($this->_userIsAdminApp);
|
||||
$data['isAdminAcc'] = intval($this->_userIsAdminAcc);
|
||||
$data['isDisabled'] = intval($this->_userIsDisabled);
|
||||
$data['isChangePass'] = intval($this->_userChangePass);
|
||||
$data['id'] = $this->_userId;
|
||||
|
||||
if (DB::getQuery($query, __FUNCTION__, $data) === false) {
|
||||
|
||||
Reference in New Issue
Block a user