{{- $loggedIn := and (and .Identity .Identity.AccessToken) true -}} {{- $hasAccount := and (and .Identity .Identity.Account) true -}} {{- $acctID := 0 }} {{- if $hasAccount }} {{- $acctID = .Identity.Account.AccountID }} {{- end }} {{- $mockMode := .MockMode }}