Module: Accountable

Extended by:
ActiveSupport::Concern
Includes:
SentryLogging
Included in:
Login::AfterLoginActions
Defined in:
app/controllers/concerns/accountable.rb

Instance Method Summary collapse

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger

Instance Method Details

#update_account_login_stats(login_type) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'app/controllers/concerns/accountable.rb', line 7

def ()
  return unless .present? && .in?(SAML::User::LOGIN_TYPES)

   =  == SAML::User::MHV_ORIGINAL_CSID ? SAML::User::MHV_MAPPED_CSID : 

  .update!("#{}_at" => Time.zone.now, current_verification: verification_level)
rescue => e
  log_error(e, account_login_stats: 'update_failed')
end