Opened 10 years ago
Closed 5 years ago
#30789 closed enhancement (duplicate)
wp_login_failed action hook should pass authentication errors
Reported by: | mattkeys | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.1 |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | Cc: |
Description
The wp_authenticate function fires the wp_login_failed action if authentication fails. The wp_login_failed action only has access to the username, but no information about what errors triggered the authentication failure.
It would be nice to make the results of the authenticate filter available to the wp_login_action. This function *is* pluggable, which is my current workaround for this problem. However I think it would be worth including this into core.
I have attached a diff with a solution.
Attachments (3)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Adding the authentication errors object