mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
set internal pwd expiration to null when set to 'never' or ''
This commit is contained in:
parent
08836de4d8
commit
af9178aa93
|
@ -362,6 +362,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
if(trim($newPwdExpiration) == '' || trim($newPwdExpiration) == 'never') {
|
||||
$newPwdExpiration = null;
|
||||
$queryStr = "UPDATE `tblUsers` SET `pwdExpiration` = NULL WHERE `id` = " . $this->_id;
|
||||
} else {
|
||||
if(trim($newPwdExpiration) == 'now')
|
||||
|
|
Loading…
Reference in New Issue
Block a user