From: Alan Knowles Date: Thu, 17 Dec 2020 06:13:50 +0000 (+0800) Subject: DataObjects/Core_person.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=daf8caf2b2b0aee8ecb1d90a23e168322ae06104;p=Pman.Core DataObjects/Core_person.php --- diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index f5166e5c..f9abe5c6 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -546,14 +546,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject * * eg. genAutoLoginURL($sub, $expires) */ - function genAutoLoginURL($url, $expires = false) { - { - $expires = $expires === false ? strtotime("NOW + 1 WEEK") : $expires; - return $url.'/'.$this->id .'/'.$expires.'/'. - hash('sha254', serialize(array($url, $time, $this->passwd))); - - } - + function validateAutoLogin($called) { $bits = explode($called);