$return_url = Pluf_HTTP_URL_urlForView('IDF_Views::passwordRecoveryInputCode');␊ |
$tmpl = new Pluf_Template('idf/user/passrecovery-email.txt');␊ |
$cr = new Pluf_Crypt(md5(Pluf::f('secret_key')));␊ |
$code = trim($cr->encrypt($user->email.':'.$user->id.':'.time()), ␊ |
$code = trim($cr->encrypt($user->email.':'.$user->id.':'.time().':primary'), ␊ |
'~');␊ |
$code = substr(md5(Pluf::f('secret_key').$code), 0, 2).$code;␊ |
$url = Pluf::f('url_base').Pluf_HTTP_URL_urlForView('IDF_Views::passwordRecovery', array($code), array(), false);␊ |