Open alpha14 opened 8 years ago
Hi @alpha14,
Thanks for the suggestion! That solves a question I was asking myself for a few days now. I'm currently working on implementing recovery tokens into Cozy's 2FA mechanism, and will start implementing your idea right after.
As @ZeHiro just suggested on IRC, we could add to that a request for the password, to prevent the case of someone exploiting an open connection (for example if you forgot to log out of a computer) to enable 2FA and lock you out of Cozy. In brief, we ask the user for a "blank" 2FA to test if everything's OK. Also just in case, we can do that on disabling 2FA too, to prevent an unwanted downgrade of security.
The system should ask a confirmation token when enabling 2fa. If the user disconnects straight away from his cozy, it locks him out.