PHPGangsta / GoogleAuthenticator

PHP class to generate and verify Google Authenticator 2-factor authentication

Home Page:http://phpgangsta.de/4376

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reset 2fa authentication

Lalitpatadiya12 opened this issue · comments

If i want to reset 2fa then what is the procedure for the same.

Typically this is behaviour you would have to implement in your own code. You could authorise the user to blank your copy of the code and allow them to re set it up.

@willpower232 Thanks for reply but i am still not much clear "blank your copy of the code and allow them to re set it up ".
What i understand is that remove the code means old key whatever that i store will removed and generate new one and set it up for the same user. is it so..?

@Lalitpatadiya12 Yes. Delete the old key and set a new one if user wants.

Applications like: Twitter, Facebook, Google, Steam and many others (wich use 2fa), use some kind of "security codes". If the user lose the mobile device, they have some codes to remove or reset the credentials control.