app/controllers/account_controller.rb
# Call if an account is inactive - either registered or locked
Call if an account is inactive - either registered or locked
Call if an account is inactive - either registered or locked
def account_inactive(user, flash_now: true)
    if user.registered?
      account_not_activated(flash_now: flash_now)
    else
      flash_and_log_invalid_credentials(flash_now: flash_now)
    end
  end
def account_inactive ( user , flash_now : true ) if user . registered? account_not_activated ( flash_now : flash_now ) else flash_and_log_invalid_credentials ( flash_now : flash_now ) end end
Call if an account is inactive - either registered or locked
Call if an account is inactive - either registered or locked
user
flash_now