Two Factor local login proposal

I would say, if you enabled 2fa and then click “disable”, you must enter a token to actually disable it.

I would hold on this to v2, I like the idea of backup codes but would like to live with this first

Looks like a good plan, I would prefer only to add the GitHub - mdp/rotp: Ruby One Time Password library · GitHub dependency cause I dont want some gem deciding how our models should look and how we implement stuff. The rotp gem is going to be a much safer and easier to audit dependency.


I would also ensure that admins/moderators can “disable” 2fa for other users (except for themselves) via the admin screens.

I do wonder if we should add a link of “I lost my phone / uninstalled app” on the "enter your otp page, but it can possibly wait for now.

7 Likes