[wp-trac] [WordPress Trac] #30789: wp_login_failed action hook should pass authentication errors

WordPress Trac noreply at wordpress.org
Fri Dec 19 20:13:30 UTC 2014


#30789: wp_login_failed action hook should pass authentication errors
------------------------------------+-----------------------------
 Reporter:  mattkeys                |      Owner:
     Type:  enhancement             |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  4.1
 Severity:  normal                  |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30789>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list