devise-two-factor
devise-two-factor copied to clipboard
Generate numerical backup codes
I wanted the backup codes in my app to resemble one-time passwords. This pull request adds this functionality by passing an options hash to #generate_otp_backup_codes!
. When the :numerical
option is passed, backup codes will be generated that only contain digits.