wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.99k stars 1.33k forks source link

QR Login: Detect if 2FA is turned on and warn user #17248

Open momo-ozawa opened 2 years ago

momo-ozawa commented 2 years ago

QR Login isn't available for accounts with 2FA. It would be nice if we could detect if 2FA is enabled and warn the user.

Options (1) Handle this on the clients before/after scanning. The QR code login flow is not required to start within the app; the device camera or a scanning app can start the flow.

OR (2) Enhance the endpoint and return a new error code to indicate that 2FA is not enabled. Use this code to show an explicit "2FA" error message after scanning (the error view already exists)

OR (3) An authentication error view is currently show in the QR login flow when auth fails. Update the web site to include a message that 2FA enabled accounts are not eligible to use the qr code login process. This messaging can be added to the "Login via the mobile app" view. This option requires no client changes.

Screen Shot 2022-10-05 at 8 25 05 AM

dangermattic commented 4 months ago

Thanks for reporting! 👍