google / google-authenticator-libpam

Apache License 2.0
1.75k stars 280 forks source link

Possibility to generate new security scratch codes without generating new security key #141

Open ChrSchultz opened 4 years ago

ChrSchultz commented 4 years ago

if the security scratchcodes are empty you only can revoke ./googe-authenticator and generate a new security key with new scretch codes. And you have to remove the old one from the authenticator app and add the new one. I would prefer to have a option --renew or so to generate new scretch codes for the same security key.

akerl commented 4 years ago

You should just be able to add more codes to ~/.google_authenticator. It's just a text file with scratch codes and other configs listed inside it.