Module Devise::Models::TwoFactorBackupable
In: lib/devise_two_factor/models/two_factor_backupable.rb

TwoFactorBackupable allows a user to generate backup codes which provide one-time access to their account in the event that they have lost access to their two-factor device

Methods

Classes and Modules

Module Devise::Models::TwoFactorBackupable::ClassMethods

Public Class methods

Public Instance methods

1) Invalidates all existing backup codes 2) Generates otp_number_of_backup_codes backup codes 3) Stores the hashed backup codes in the database 4) Returns a plaintext array of the generated backup codes

Returns true and invalidates the given code iff that code is a valid backup code.

[Validate]