Automattic / jetpack-force-2fa

6 stars 1 forks source link

Check for WP_Error on wp_authenticate_user #20

Closed kovshenin closed 7 years ago

kovshenin commented 7 years ago

When something returns a WP_Error during authentication (like an invalid password), we shouldn't be trying to access ->has_cap() of that error object, but rather return it immediately.