Auto Login After Password Reset (Woo Compatible)
Automatically log WordPress and WooCommerce users in immediately after they reset their password. Improves UX by skipping the manual login step.
by Syed Usman · github.com/imsyedusman/auto-login-after-password-reset · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/imsyedusman/auto-login-after-password-reset/archive/refs/heads/main.zipAutomatically log users in right after they reset their password — for both WordPress and WooCommerce.
This lightweight plugin enhances user experience by skipping the extra “log in again” step after a password reset. Once users successfully reset or change their password, they’re logged in instantly and redirected to a configurable page (like My Account).
✨ Features
- 🔒 Instant login after password reset or change
- ⚙️ Works with both core WordPress and WooCommerce reset flows
- 🔁 Optional custom redirect URL
- ✅ Built using WordPress Coding Standards
- 🌐 Fully translation-ready (
Text Domain: auto-login-after-password-reset) - 🧩 100% GPLv2 or later
🧠 How It Works
The plugin hooks into:
password_reset→ for default WordPress reset flowwoocommerce_customer_reset_password→ for WooCommerce reset flowafter_password_reset→ for password changes while logged in
It then uses WordPress’ built-in authentication functions:
wp_set_current_user();
wp_set_auth_cookie();
⚙️ Installation
Upload the plugin to /wp-content/plugins/auto-login-after-password-reset/
Activate it via Plugins → Installed Plugins
Go to Settings → Auto Login After Reset
Toggle the feature on/off and set a custom redirect URL (optional)