set internal pwd expiration to null when set to 'never' or ''

This commit is contained in:
Uwe Steinmann 2021-09-20 16:39:08 +02:00
parent 08836de4d8
commit af9178aa93

View File

@ -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')