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. 

  • 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

1 Reply

  • 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