Automattic / Automattic/WP-Job-Manager
Job Submission new user notification email: set password link goes to wp-login.php page rather than Woocommerce
- Dominant language
- PHP
- Stars
- 899
- Forks
- 369
- Avg merge
- 11h 37m
- Merged PRs (30d)
- 12
Description
**Describe the bug**
When a new user submits a job they are sent a new user registration email with a password reset link. The password reset link goes to the wp-login.php page. As WP Job Manager reccommends using Woocommerce for account management (https://wpjobmanager.com/document/registration-login-page/) I think this password reset should really go through Woocommerce instead, if Woocommerce is installed. Most Wordpress developers don't want users to see the wp-login.php page.
**To Reproduce**
Steps to reproduce the behavior:
1. In Job Listings -> Settings -> Job submission, ensure "Enable account creation during submission", "Generate usernames from email addresses", and "Email new users a link to set a password" are all checked.
2. Whilst logged out, submit a job through WP Job Manager front-end job submission form
3. Receive registration details email with link to set a password
4. Click the link to set a password
**Screenshots**

I've added a screenshot of the wp-login.php reset pasword page
**Expected behavior**
Reset password link should go through Woocommerce. For example, Woocommerce reset password functionality can be replicated as:
1. Logout
2. Go to woocomerce "accout" page
3. Click "Lost your password?" link
4. Enter email to send password reset email
5. Receive email and follow instructions to reset password
**Isolating the problem (mark completed items with an [x]):**
- [X] I have deactivated other plugins and confirmed this bug occurs when only WP Job Manager plugin is active.
- [X] This bug happens with a default WordPress theme active.
- [X] I can reproduce this bug consistently using the steps above.
**WordPress Environment**
- WordPress Version: 5.4
- WP Job Manager Version: 1.34.1
- PHP Version: 7.3.16
- Other important details: Woocommerce plugin activated
Contributor guide
Research direction
Trace the registration details email generated after front-end job submission and identify how its password-reset URL is built. Compare that destination with the WooCommerce account password-reset flow described in the issue. Done means the link uses the WooCommerce account flow when WooCommerce is active and the existing behavior remains valid otherwise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100