module Otpable

Model concern to provide shared behaviour for two-factor auth (one-time password)

Automatically generated by the orthodox gem (github.com/katanacode/orthodox) © Copyright 2019 Katana Code Ltd. All Rights Reserved.

Public Instance Methods

destroy_otp_credential() click to toggle source
# File lib/generators/authentication/templates/models/concerns/otpable.rb, line 22
def destroy_otp_credential
  otp_credential.destroy
end
tfa?() click to toggle source
# File lib/generators/authentication/templates/models/concerns/otpable.rb, line 18
def tfa?
  otp_credential.present?
end