alexandregz / twofactor_gauthenticator

This RoundCube plugin adds the 2-step verification(OTP) to the login proccess
MIT License
220 stars 77 forks source link

Reset the secret #80

Closed barul42 closed 6 years ago

barul42 commented 6 years ago

Hello, Is it possible to reset the secret? If I disable 2FA for a user and then re-activate it, I'd like to get an all new secret, but I don't see an option allowing to do that. Thanks

alexandregz commented 6 years ago

Hello. The easy way is empty the user.preferences value from database.

barul42 commented 6 years ago

It is why I ended up doing, but surely having all the user preferences deleted isn't the best way to to it?

alexandregz commented 6 years ago

No really the best way, of course.