Question : devise phone authentication
Answered by : lior
# config/initializers/devise.rb
config.authentication_keys = [:phone]
# add the followings methods in models/user.rb
def email_required? false
end
def email_changed? false
end
Source : | Last Update : Tue, 04 Oct 22