Feature: One click email login functionality.#3548
Feature: One click email login functionality.#3548andrewlimaza wants to merge 20 commits intostrangerstudios:devfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request implements a passwordless "magic link" email login feature for Paid Memberships Pro. When enabled in the advanced settings, users can request a one-time login link sent to their email instead of entering a password, enhancing convenience while maintaining security through time-limited tokens.
Key Changes:
- Added a new passwordless email login system with token generation and validation
- Created email template infrastructure for sending secure login links
- Added admin setting to enable/disable the feature
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 21 comments.
Show a summary per file
| File | Description |
|---|---|
| paid-memberships-pro.php | Loads the email template class and conditionally includes the email-login functionality when enabled |
| includes/email-login.php | Core implementation of passwordless login including token generation, validation, authentication, and cleanup |
| classes/email-templates/class-pmpro-email-template-login-link.php | Email template class for sending login links to users |
| classes/class.pmproemail.php | Adds send_email_login_link() method to the email handler |
| adminpages/advancedsettings.php | Adds "Passwordless Login" option to advanced settings |
| css/frontend/pmpro-email-login.css | Styling for the email login button and UI elements |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
classes/email-templates/class-pmpro-email-template-login-link.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Claude PR Review: #3548 - Feature: One click email login functionality Summary This PR adds passwordless/magic link login functionality to Paid Memberships Code Review ✅ Passed
Testing Results Settings & Configuration
Core Functionality - Enabled State
Core Functionality - Disabled State
Security Tests
Edge Cases
Verdict ✅ Approve Well-implemented feature with solid security practices. All 30+ tests passed |
All Submissions:
How to test the changes in this Pull Request:
Other information:
Changelog entry