Class: Login::AfterLoginActions
- Inherits:
-
Object
- Object
- Login::AfterLoginActions
- Includes:
- Accountable
- Defined in:
- app/services/login/after_login_actions.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
Instance Method Summary collapse
-
#initialize(user) ⇒ AfterLoginActions
constructor
A new instance of AfterLoginActions.
- #perform ⇒ Object
Methods included from Accountable
Methods included from SentryLogging
#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger
Constructor Details
#initialize(user) ⇒ AfterLoginActions
Returns a new instance of AfterLoginActions.
11 12 13 |
# File 'app/services/login/after_login_actions.rb', line 11 def initialize(user) @current_user = user end |
Instance Attribute Details
#current_user ⇒ Object (readonly)
Returns the value of attribute current_user.
9 10 11 |
# File 'app/services/login/after_login_actions.rb', line 9 def current_user @current_user end |
Instance Method Details
#perform ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/services/login/after_login_actions.rb', line 15 def perform return unless current_user Login::UserCredentialEmailUpdater.new(credential_email: current_user.email, user_verification: current_user.user_verification).perform Login::UserAcceptableVerifiedCredentialUpdater.new(user_account: @current_user.user_account).perform update_account_login_stats(login_type) id_mismatch_validations AcceptableVerifiedCredentialAdoptionService.new(current_user).perform if Flipper.enabled?(:reactivation_experiment_initial_gate, current_user) if Settings.test_user_dashboard.env == 'staging' TestUserDashboard::UpdateUser.new(current_user).call(Time.current) TestUserDashboard::AccountMetrics.new(current_user).checkout end end |