Initial commit
Some checks failed
定时更新GitHub源插件 / 自动更新GitHub插件 (push) Has been cancelled

This commit is contained in:
chorblack
2026-03-07 11:19:25 +08:00
commit e75f275ef4
4484 changed files with 645480 additions and 0 deletions

26
Passport/README.md Normal file
View File

@@ -0,0 +1,26 @@
# 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>';
}
?>
```
提示:其他地方也可以,自己根据需要进行调整吧。