Forum Discussion

igor_nadiein's avatar
4 years ago

Logout hook

Is there any logout hook to manage user logout event? What i need: on our community we have custom language component with endpoint. 
  • Parshant's avatar
    4 years ago

    igor_nadiein,

    You can use

    <#if user.anonymous == false>
     For Loggedin users
    </#else>
     For Loggedout or anonymous users
    </#if>

    below code to check if user is loggedin or not loggedin in community