12 lines
240 B
PHP
12 lines
240 B
PHP
|
<?php
|
||
|
|
||
|
$record = \Models\User::find($id_record);
|
||
|
|
||
|
$reset_token = $record->reset_token;
|
||
|
|
||
|
return [
|
||
|
'username' => $record->username,
|
||
|
'reset_token' => $reset_token,
|
||
|
'reset_link' => ROOTDIR.'/reset.php?reset_token='.$reset_token,
|
||
|
];
|