wp_login action can't deal with alternate auth mechanisms
|Reported by:||Otto42||Owned by:||ryan|
Description (last modified by Otto42)
In the wp_signon function, the action hook for wp_login is called like this:
Problem is that $credentials['user_login'] is the content of the form field passed to it by the login screen. If an alternate authentication mechanism is used (like via Twitter or Facebook), then the action does not get the resulting user name that is logging in.
If the $user variable is_a WP_User object, then the value passed to this action hook should be $user->user_login instead, so as to pass the login name of the authenticated user to the action.
Change History (9)
- Keywords 3.2-early added
- Milestone changed from Awaiting Review to Future Release
comment:6 SergeyBiryukov — 3 years ago
- Keywords 3.2-early removed
- Milestone changed from Future Release to 3.3