- 描述: 找回密码
- version: 1.0.0
- 依赖: 14.5.26-*
修正邮件内容乱码问题。
- 上传插件包
- 打开
admin/login.php文件,做以下修改:
// 找到这里
<?php if($options->allowRegister): ?>
•
<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-ent"><?php $options->registerUrl(); ?>"><?php _e('用户注册'); ?></a>
<?php endif; ?>
// 在它下面插入以下代码
<?php
$activates = array_keys(Typecho_Plugin::export()['activated']);
if (in_array('Passport', $activates)) {
echo '<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3C%2Fspan%3E%27%3C%2Fspan%3E+.+Typecho_Common%3A%3A%3Cspan+class%3D"pl-en">url('passport/forgot', $options->index) . '">' . '忘记密码' . '</a>';
}
?>