跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Email OTP Login

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Email OTP Login

作者:Tushar Sharma
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Email OTP Login adds an additional layer of security to your WordPress site by requiring users to verify an OTP sent to their email after entering their username and password. This ensures that only users with access to the registered email can log in.

Features:

  • Email OTP verification during login.
  • OTP expires in 5 minutes (configurable).
  • OTP stored securely using WordPress password hashing.
  • Works with the default WordPress login form.
  • Uses WordPress built-in wp_mail() function (works with SMTP plugins).

This plugin does not modify WordPress core files.

License

This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 or later.

This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

屏幕截图

  • Standard login screen with OTP verification page.
  • Example email received with OTP.
  • OTP verification form after login.

安装

  1. Upload the plugin folder email-otp-login to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Ensure your site can send emails (install a plugin like “WP Mail SMTP” if needed).
  4. Test by logging in or registering a new account.
    • After entering credentials, an OTP will be emailed.
    • Enter the OTP to complete login.

常见问题

Does this replace my existing password?

No. Users must enter their normal username/password first, then OTP.

What happens if the OTP email does not arrive?

Make sure your site can send emails. We recommend configuring an SMTP plugin for reliable email delivery.

Can I change OTP expiration time?

Yes. In the plugin class, $otp_expiration controls OTP lifetime (default 300 seconds = 5 minutes).

Can I use this with WooCommerce login?

This version is built for native WordPress login. In next release, I will add WooCommerce support.

Is OTP stored securely?

Yes. OTP is stored using the same mechanism WordPress uses for user passwords.

评价

Works like a charm, but….

getgiffy 2026 年 2 月 25 日
Works fine, but keep in mind that if you use login-based WP-API access that this also requires OTP. So your existing API calls might fail….
阅读所有1条评价

贡献者及开发者

「Email OTP Login」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Tushar Sharma

帮助将「Email OTP Login」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.0.0

  • Initial release with OTP verification for login.

额外信息

  • 版本 1.0.0
  • 最后更新:7 月前
  • 活跃安装数量 30+
  • WordPress 版本 6.3 或更高版本
  • 已测试的最高版本为 6.8.5
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    email verificationloginotpsecuritytwo factor authentication
  • 高级视图

评级

3 星(最高 5 星)。
  • 0 条 5 星评价 5 星 0
  • 0 条 4 星评价 4 星 0
  • 1 条 3 星评价 3 星 1
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

添加我的评价

查看全部评论

贡献者

  • Tushar Sharma

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.