mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
- delete entries from table tblUserPasswordRequest and tblUserPasswordHistory
when user is deleted
This commit is contained in:
parent
e3d13bc6c8
commit
1392e9fbf7
|
@ -434,6 +434,14 @@ class LetoDMS_Core_User {
|
|||
$queryStr = "DELETE FROM tblUserImages WHERE userID = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
|
||||
// Delete entries in password history
|
||||
$queryStr = "DELETE FROM tblUserPasswordHistory WHERE userID = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
|
||||
// Delete entries in password request
|
||||
$queryStr = "DELETE FROM tblUserPasswordRequest WHERE userID = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
|
||||
// Delete user itself
|
||||
$queryStr = "DELETE FROM tblUsers WHERE id = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user