fix: allow logged-out email verification#1285
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR refactors the customer email verification flow to use WordPress password generation for cryptographic keys, removes login-based access control, and adds hash-safe equality comparison. The change improves security and simplifies verification logic by validating keys directly rather than gating on user authentication state. ChangesEmail Verification Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
Summary
Verification
Merged via PR #1285 to main. aidevops.sh v3.19.5 spent 39s on this as a headless bash routine. |
|
Performance Test Results Performance test results for 6967d8b are in 🛎️! Note: the numbers in parentheses show the difference to the previous (baseline) test run. Differences below 2% or 0.5 in absolute values are not shown. URL:
|
Summary
hash_equals()and generate new keys with random 32-character tokens.Verification
vendor/bin/phpcs inc/managers/class-customer-manager.php inc/models/class-customer.php tests/WP_Ultimo/Managers/Customer_Manager_Test.php tests/WP_Ultimo/Models/Customer_Test.phpvendor/bin/phpunit --filter Customer_Manager_Testvendor/bin/phpunit --filter Customer_TestPHPUnit emitted existing PHP 8.4 deprecation noise unrelated to this change.
Summary by CodeRabbit
Bug Fixes
Tests