mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-28 11:41:19 +00:00
- use CURRENT_TIMESTAMP instead of now() in createPasswordRequest()
This commit is contained in:
parent
a6bb059d9d
commit
beb82e94c8
|
|
@ -1405,7 +1405,7 @@ class LetoDMS_Core_DMS {
|
|||
*/
|
||||
function createPasswordRequest($user) { /* {{{ */
|
||||
$hash = md5(uniqid(time()));
|
||||
$queryStr = "INSERT INTO tblUserPasswordRequest (userID, hash, `date`) VALUES (" . $user->getId() . ", " . $this->db->qstr($hash) .", now())";
|
||||
$queryStr = "INSERT INTO tblUserPasswordRequest (userID, hash, `date`) VALUES (" . $user->getId() . ", " . $this->db->qstr($hash) .", CURRENT_TIMESTAMP)";
|
||||
$resArr = $this->db->getResult($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
return $hash;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user