惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

半日闲

不知所措 Typecho1.3文章永久链接获取 主题XaInk支持Typecho1.3 Typecho仿百度响应式主题Xaink XA Note - 小A笔记 2025总结 又是一年1024程序员节 outlook账号保证安全必要的修改 如何申请并cf托管免费域名ip6.arpa 铭记历史、缅怀先烈、珍爱和平、开创未来 再上阳台山 Typecho同步分享文章到telegram频道插件PostToTelegram
Typecho用户注册后的邮件验证插件
小A · 2025-04-01 · via 半日闲

关于

本来想给一个图片站做一个注册功能,又想要保证注册用户是真实有效的,想到做一个注册-邮箱验证的功能,所以有了这个插件。

github:https://github.com/awinds/MailVerify

使用方法

1.下载本插件,放在 usr/plugins/ 目录中
2.文件夹名改为 MailVerify
3.登录管理后台,激活插件
4.插件管理,设置,配置你的 SMTP

说明

  • 插件template目录是中是显示模板

    • message.html为邮件发送内容模板
    • success.html为验证成功后的显示模板
    • fail.html为验证失败后的显示模板
    • notice.html为后台操作通知显示模板
  • 用户在注册成功后会发送一封验证邮件,邮件链接1天内有效
  • 用户可以在个人设置页面邮件地址下查看是否验证成功,可重新发送一封验证邮件
  • 验证成功后邮件地址变为只读,不可更改

模板中使用

if(is_array(Typecho_Plugin::export()["activated"]) 
&& array_key_exists("MailVerify", Typecho_Plugin::export()["activated"])) {
    if(MailVerify_Plugin::isMailVerify()) {
        //to do 用户已验证
    }
}

版本

v1.0.0

  • 新建插件,注册邮件验证。