钩子名称
member_edit_password_after
定义方法
\Phpcmf\Hooks::trigger('member_edit_password_after', $data);
参数说明
Array ( [username] => asdfa [phone] => [email] => daf@fda.com [password] => d45c371b35ded2de44e7b528c00ee964 [name] => [salt] => 59b90e1005 [money] => 0 [freeze] => 0 [spend] => 0 [score] => 0 [experience] => 0 [regip] => 127.0.0.1 [regtime] => 1481442182 [randcode] => 230252 [uid] => 8120 [id] => 8120 [is_lock] => 0 [is_auth] => 0 [is_admin] => 0 [is_avatar] => 0 [is_verify] => 0 [is_mobile] => 0 [is_complete] => 0 [password_value] => 表示新密码的明文数据 ) #以实际输出的参数为准
用法举例
/config/hooks.php
\Phpcmf\Hooks::app_on('备注说明', 'member_edit_password_after', function($data) { ... 你的程序段 });