app/controllers/account_controller.rb
def account_not_activated(flash_now: true)
    flash_error_message(log_reason: 'NOT ACTIVATED', flash_now: flash_now) do
      if Setting.self_registration == '1'
        'account.error_inactive_activation_by_mail'
      else
        'account.error_inactive_manual_activation'
      end
    end
  end
# Log an attempt to log in to an account in "registered" state and show a flash message.
Log an attempt to log in to an account in "registered" state and show a flash message.
Log an attempt to log in to an account in " registered " state and show a flash message .
def account_not_activated(flash_now: true)
    flash_error_message(log_reason: 'NOT ACTIVATED', flash_now: flash_now) do
      if Setting.self_registration == '1'
        'account.error_inactive_activation_by_mail'
      else
        'account.error_inactive_manual_activation'
      end
    end
  end
def account_not_activated ( flash_now : true ) flash_error_message ( log_reason : 'NOT ACTIVATED' , flash_now : flash_now ) do if Setting . self_registration == '1' 'account.error_inactive_activation_by_mail' else 'account.error_inactive_manual_activation' end end end
Log an attempt to log in to an account in "registered" state and show a flash message.
Log an attempt to log in to an account in " registered " state and show a flash message .
flash_now