Sha256: 5e779860f793f0e37efd0df928e3ea65fd333381e9efc12ee8f105be9c020d40

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 Bytes

Contents

class User < ActiveRecord::Base
  devise :devise_xfactor_authenticatable, :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  has_one_time_password

  def send_devise_xfactor_authentication_code(code)
    SMSProvider.send_message(to: phone_number, body: code)
  end

  def phone_number
    '14159341234'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise_xfactor_authentication-2.2.23 spec/rails_app/app/models/user.rb
devise_xfactor_authentication-2.2.22 spec/rails_app/app/models/user.rb
devise_xfactor_authentication-2.2.21 spec/rails_app/app/models/user.rb
devise_xfactor_authentication-2.2.20 spec/rails_app/app/models/user.rb
devise_xfactor_authentication-2.2.19 spec/rails_app/app/models/user.rb
devise_xfactor_authentication-2.2.18 spec/rails_app/app/models/user.rb