DataObjects/Core_person.php
authorAlan Knowles <alan@roojs.com>
Thu, 17 Dec 2020 06:49:12 +0000 (14:49 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 17 Dec 2020 06:49:12 +0000 (14:49 +0800)
DataObjects/Core_person.php

index 2bd9aa9..0c559aa 100644 (file)
@@ -549,6 +549,8 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
     function genAutoLoginURL($url, $expires = false)  
     {
         $expires = $expires  === false ? strtotime("NOW + 1 WEEK") : $expires;
+        echo hash('sha256', serialize(array($url, $time, $this->email, $this->passwd)));
+        
         return $url.'/'.$this->id .'/'.$expires.'/'.
             hash('sha256',
                 serialize(