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 update_account_login_stats(login_type) return unless account_login_stats.present? && login_type.in?(SAML::User::LOGIN_TYPES) login_type = login_type == SAML::User::MHV_ORIGINAL_CSID ? SAML::User::MHV_MAPPED_CSID : login_type account_login_stats.update!("#{login_type}_at" => Time.zone.now, current_verification: verification_level) rescue => e log_error(e, account_login_stats: 'update_failed') end |