Sha256: e82c41c4ec078c419e50bd3faade6d1a74c23a93a76d37b1a2b6cf6ca2c6fbfa
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
class User < ActiveRecord::Base devise :two_factor_authenticatable, :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable has_one_time_password def send_two_factor_authentication_code(code) SmsProvider.send_message(to: phone_number, body: code) end def phone_number '14159341234' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise_two_factor_authentication-3.0.0 | spec/rails_app/app/models/user.rb |