Replies: 2 comments 3 replies
-
My initial thought was whether I don't know how difficult that would be to support, because for password that required a separate |
Beta Was this translation helpful? Give feedback.
-
Thanks for the report. Adding support for emailed codes as 2FA is possible, and could be useful more generally, not just in passwordless environments. Email codes seems more common than magic links in my experience. I personally prefer magic links as they are more secure, but email codes are definitely more friendly if the device you receive email on is not the same device used for browsing. Alternatively, if no password has been set (or no 2FA options are available), |
Beta Was this translation helpful? Give feedback.
-
When I was preparing a simple app to show people on Twitter how easy it is to set up passwordless registration with Rodauth where passkey & password can be added later, I ran into an edge case where the user cannot fully login.
Initially, I enabled the
webauthn_login
feature, but forgot to setwebauthn_login_user_verification_additional_factor? true
as well. When the user didn't have a password set but they added a passkey, and email authentication was enabled, logging in via passkey authenticated 1st factor, and when Rodauth requested 2nd factor (e.g. when usingchange_password
to set a password for the first time), it redirected to the 2FA page, but there weren't any 2FA methods left to authenticate with, so the page was empty.Here is the full Rodauth configuration I used:
The user could run into this edge case even when
webauthn_login_user_verification_additional_factor?
is set totrue
, in case they use a passkey device that doesn't perform any form of user verification (e.g. a YubiKey?), so passkey login still authenticates only 1st factor.Beta Was this translation helpful? Give feedback.
All reactions