Skip to main content
1 of 2
Lindsey D
  • 24.1k
  • 5
  • 54
  • 111

To determine if the user is logged in at all, you'll want to use the currentUser variable:

{% if currentUser %}
    Welcome, {{ currentUser.friendlyName }}!
{% endif %}

To determine if the logged in user is a specific user, then simply compare against their username:

{% if currentUser and currentUser.username is 'johndoe' %}
    Hey Johnny Boy!
{% endif %}
Lindsey D
  • 24.1k
  • 5
  • 54
  • 111