Zum Hauptinhalt gehen

How can I check if the user is logged in to the application (HTML5)?

Kommentare

2 Kommentare

  • Ryan Cooney

    You want

    =$userInfo1.username === undefined

     

    --Ryan

    0
  • Stefan Schweigert

    Hi Thomas,

     

    I would suggest using the roles parameter instead of username, as it is a String[] type.

     

    In the If statement, you can use: =$userInfo1.roles.length > 0

     

    Thanks, Stefan

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.