ShivWeb Login Verification: Email OTP & Two-Factor (2FA) for WooCommerce
Two-factor authentication (2FA) by email OTP for WordPress and WooCommerce logins, including the block checkout.
Install in
ShivWeb Login Verification adds two-factor authentication (2FA) to WordPress and WooCommerce logins with a one-time password (OTP) sent by email. A user signs in with their password as usual, then types the code from their inbox. Someone who has stolen a password but cannot open the inbox stays locked out.
Your users don’t need an authenticator app, and you don’t need an SMS service, an account anywhere, or API keys. Codes go out through your site’s own email, so the SMTP plugin you already use handles delivery.
How a login works
- The user enters their username and password as normal.
- The plugin emails them a one-time code and holds the session.
- They type the code on the verification screen and land where they were going.
Choose who needs a code
You tick the roles that must verify and leave the rest alone. Out of the box only the Customer role is gated, so a store can protect shopper accounts without changing how the team logs in. Users can mark a browser as trusted for a number of days you choose, so regulars aren’t asked for a code on every visit.
You can’t lock yourself out
Login codes stay off until you prove your site can send email: you send yourself a test code and enter it before the switch works. A broken mailer can’t lock everyone out. If something goes wrong later, one line in wp-config.php or one WP-CLI command turns everything off and releases every held session at once.
Works with the WooCommerce block checkout
Most OTP login plugins add a field to the login form. The WooCommerce block checkout never shows that field, because it signs customers in through the Store API in the background. This plugin checks the session after login, on the server, so wp-login.php, wp-admin, My Account, the classic checkout and the block checkout all go through the same check. Calling an endpoint directly doesn’t skip it.
Email verification at registration
You can also require new sign-ups to confirm their email address with a code. A small popup verifies the address on the register form, checkout sign-ups are verified right after, and unverified accounts nobody came back for are removed after a grace period.
Features
- Two-factor authentication with email OTP codes, no authenticator app
- Pick exactly which user roles must verify
- WooCommerce: My Account, classic checkout and block checkout
- Trusted devices, remembered for as many days as you choose
- Email verification for new registrations, with automatic cleanup
- Rate limits on resends, wrong attempts and codes per account
- Your own email template and on-screen messages
- No external service for codes, no API keys, no per-message fees
- Recovery through a wp-config.php constant or WP-CLI
Recovery
If you ever lock yourself out, add define( 'SWLV_DISABLE_OTP', true ); to wp-config.php, or run wp swlv disable with WP-CLI. Both release every held session immediately. To unstick one user (send limit reached, mailbox typo), run wp swlv reset-user <id|login|email>.
Usage data (opt-in)
After activation, the plugin asks an administrator whether it may send a short weekly report to Shiv Web, the plugin author, at shivweb.com. Nothing is sent unless an administrator clicks Allow. The report holds the site address, the WordPress, PHP, WooCommerce and plugin versions, the site language and theme, and which plugin features are on. The admin email is added only if the administrator ticks a separate box. User accounts, customer data and login codes are never sent. You can switch it on or off at any time under Settings, Email Verification, in the “Help improve the plugin” section.
When you deactivate the plugin from the Plugins screen, a short optional survey asks why. Your answer is sent only if you click “Send and deactivate”.
Both go to https://shivweb.com/wp-json/shivweb-insights/v1/. See the Shiv Web privacy policy.
Written by Joobi from the project's own listing. See the source page
1.0.1
- New: Optional weekly usage report. Nothing is sent until an administrator clicks Allow.
- New: Optional short survey when you deactivate the plugin.
- Fix: Turning “Verify email at registration” off and on again could let the daily cleanup remove an active account with no orders. Logging in now clears the account’s unverified tag while the setting is off.
- Fix: Sessions waiting for a code are now also held on WooCommerce ?wc-api= addresses.
- Fix: On busy shops the daily cleanup now reaches the oldest unverified sign-ups first.
- Fix: Behind Cloudflare or another proxy, the register popup no longer says “too many codes” for everyone after 15 sign-ups in an hour. Each email address is still limited to 5 codes an hour.
- Tested with WordPress 7.2.
1.0.0
- Initial release.
Follow this listing's changes (Atom feed)