app/lib/multifactor_authenticator.rb
# If multifactor is enabled, and they are using SMS, send a login code.
# Otherwise do nothing (eg, they get login code from authenticator app).
If multifactor is enabled, and they are using SMS, send a login code.
Otherwise do nothing .
If multifactor is enabled and they are using SMS send a login code . Otherwise do nothing .
def send_login_code_if_necessary!
    return nil unless is_multifactor_enabled?
    send_login_code_via_sms! if multifactor_config.sms_number.present?
    nil
  end
def send_login_code_if_necessary! return nil unless is_multifactor_enabled? send_login_code_via_sms! if multifactor_config . sms_number . present? nil end
If multifactor is enabled, and they are using SMS, send a login code.
If multifactor is enabled and they are using SMS send a login code .