跳至内容
WordPress.org

China 简体中文

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

Plugin Directory

Gupti 2FA

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

Gupti 2FA

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

描述

Gupti 2FA adds an extra layer of security to your WordPress site by requiring a time-based one-time password (TOTP) from Google Authenticator (or any compatible app) at login. Everything runs locally on your server — no third-party APIs, no account signup, no data leaves your site.

For users:

  • Easy setup via QR code — scan and go, or enter the secret key manually.
  • Works with Google Authenticator, Authy, Microsoft Authenticator, 1Password, and any TOTP app.
  • 8 one-time recovery codes in case you lose your device.
  • Verification code required when enabling, so you can never lock yourself out by mistake.
  • Clean, distraction-free verification page at login.

For admins:

  • Modern dashboard with 2FA coverage stats across your site.
  • Role-based enforcement — require 2FA for administrators, editors, or any role.
  • Optional grace period so enforced users get time to set up.
  • Choose where users complete setup: right after login, or inside the dashboard.
  • 2FA Status Report — see who has 2FA enabled and reset a user’s 2FA in one click.
  • Login page branding — add your own logo to the verification pages.

Security hardening built in:

  • TOTP secrets are encrypted at rest (AES-256-GCM keyed from your site’s salts).
  • Rate limiting on all verification steps — codes can’t be brute-forced.
  • Replay protection — a used code is never accepted twice.
  • Recovery codes are stored hashed and each works only once.
  • QR codes are generated locally in pure PHP — nothing is sent to external services.
  • No external fonts, scripts, or API calls anywhere.

Development

The admin dashboard is built with React and Vite. The uncompiled, human-readable source is included in the plugin’s app/ directory. To rebuild the compiled files in assets/dist/, run npm install followed by npm run build inside the app/ directory.

安装

  1. Upload the gupti-2fa folder to /wp-content/plugins/, or install via Plugins → Add New.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. To enable 2FA for yourself: go to your Profile page, scan the QR code with your authenticator app, and enter the 6-digit code to verify.
  4. To enforce 2FA for user roles: go to Gupti 2FA → Configuration, select the roles, and save.

常见问题

What if I lose my phone?

Use one of your 8 recovery codes on the login screen to complete verification, then reconfigure 2FA from your profile. If you have lost the recovery codes too, a site administrator can reset your 2FA from the 2FA Status Report.

Can I require 2FA only for administrators?

Yes. Go to Gupti 2FA → Configuration and select only the roles you want to enforce — for example, just Administrators. Other users can still enable 2FA voluntarily from their profile page.

Will this plugin slow down my site?

No. The plugin makes no external API calls and loads its scripts and styles only on the login page and its own admin pages. Your site’s front end is completely unaffected.

Does this work with custom login pages?

It hooks into WordPress core authentication, so it works with any theme or plugin that uses the standard wp_authenticate / wp_login_url flow.

Does it send my data anywhere?

No. Secrets are generated, stored (encrypted), and verified entirely on your own server. QR codes are rendered locally in PHP. The plugin makes no external requests.

Will REST API or XML-RPC logins bypass 2FA?

No. Password-based programmatic logins are blocked for 2FA-enabled accounts. Use WordPress application passwords for API access — they are unaffected.

Where can I get support?

Use the plugin support forum on WordPress.org, or email us at hello@plexomedia.com.

评价

此插件暂无评价。

贡献者及开发者

「Gupti 2FA」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • plexomedia

帮助将「Gupti 2FA」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.0.0

  • Initial release.

额外信息

  • 版本 1.0.0
  • 最后更新:2 天前
  • 活跃安装数量 不到10
  • WordPress 版本 6.0 或更高版本
  • 已测试的最高版本为 7.0.4
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    2FAgoogle authenticatorlogin securitytotptwo factor
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • plexomedia

支持

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

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • 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.