Opened 9 years ago
Last modified 6 years ago
#37522 assigned feature request
reset password and lost password form functions
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | Cc: |
Description
Wordpress provides the wp_login_form
function that can be placed anywhere on our wordpress site through shortcodes, etc. But I couldn't find a function for the reset password and lost password form.
Would it be possible to create those functions as part of Wordpress itself?
I'd like to avoid copying code from the wp core files (wp-login) into my own code. I prefer to use Wordpress built-in functions as much as possible.
Attachments (2)
Change History (19)
#3
@
8 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 4.8
- Owner set to voldemortensen
- Status changed from new to assigned
Thanks for the idea @mireillesan! I like the idea of a wp_lostpassword_form
, but wp_resetpass_form
might not be such a good idea, or even practical. For wp_resetpass_form
to be functional, a password reset key needs to be in place somehow.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
#5
@
8 years ago
- Keywords needs-testing added
Ideally this gets committer review before landing in 4.8.
This ticket was mentioned in Slack in #core by voldemortensen. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by voldemortensen. View the logs.
8 years ago
#9
@
8 years ago
- Milestone changed from 4.8 to Future Release
Moving to future since this missed the beta 1.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
#13
@
7 years ago
The initial patch looks good to me and worked as expected.
Should the form on wp-login.php
be switched to use the function?
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
#16
@
7 years ago
- Keywords commit removed
- Milestone changed from 4.9 to Future Release
Tested 37522.2.diff by adding the form to a sidebar in Twenty Seventeen.
The form correctly redirects to wp-login.php
and displays an error for invalid login, but doesn't display any messages for a valid login, just reloads the page. I thought it didn't work until I checked the email.
Additionally, login_form_bottom
should be replaced with lostpassword_form_bottom
.
Moving to a Future Release per the 4.9 bug scrub earlier today.
Any news on this?