-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Description
Following a feature request on Facebook, it could be a good idea to check for the cookie before asking for TOTP.
The TOTP check is hooked on wp_authenticate_user (through wp_authenticate_username_password ) which has priority 20, while wp_authenticate_cookie, on the same hook, has priority 30. This means that an error is returned because of the TOTP before the cookie is check.
An easy solution would be to manually check for wp_authenticate_cookie within our auth function.