Files
plugins/Passport/README.md
chorblack e75f275ef4
Some checks failed
定时更新GitHub源插件 / 自动更新GitHub插件 (push) Has been cancelled
Initial commit
2026-03-07 11:19:25 +08:00

26 lines
814 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Passport
Typecho 密码找回插件
# 插件信息
1、在此基础上进行的修改https://github.com/typecho-fans/plugins/tree/master/Passport
2、主要更新了一下PHPMailer到最新版本
# 使用帮助
1、上传插件包
2、:warning:打开 admin/login.php 文件,做以下修改:
```
// 找到这里
<?php if($options->allowRegister): ?>
&bull;
<a href="<?php $options->registerUrl(); ?>"><?php _e('用户注册'); ?></a>
<?php endif; ?>
// 在它下面插入以下代码
<?php
$activates = array_keys(Typecho_Plugin::export()['activated']);
if (in_array('Passport', $activates)) {
echo '<a href="' . Typecho_Common::url('passport/forgot', $options->index) . '">' . '忘记密码' . '</a>';
}
?>
```
提示:其他地方也可以,自己根据需要进行调整吧。