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

推荐订阅源

N
News and Events Feed by Topic
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
Jina AI
Jina AI
H
Help Net Security
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
L
LangChain Blog
Recorded Future
Recorded Future
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ
GbyAI
GbyAI
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
M
MIT News - Artificial intelligence
爱范儿
爱范儿
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Y
Y Combinator Blog
B
Blog
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
W
WeLiveSecurity
MongoDB | Blog
MongoDB | Blog
Cloudbric
Cloudbric
N
News and Events Feed by Topic
The Cloudflare Blog
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
D
DataBreaches.Net
博客园 - 【当耐特】
T
Troy Hunt's Blog
V
Visual Studio Blog
V2EX - 技术
V2EX - 技术
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google Online Security Blog
Google Online Security Blog
The GitHub Blog
The GitHub 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

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