FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. essamkayall1996
    3. Posts
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by essamkayall1996

    • Checking for user.roles if it is equal to a specific role and based on that determine the URL Forgot-Password

      I have a case where I have two websites for the same Fusionauth application

      So I am trying to differentiate the Reset-Password URL based on the role

      how can I achieve such a case in the template.

      I have tried this

      [#if user.roles?? && "client" in user.roles]
      <a href="https://test.com/${changePasswordId}">
            Reset Password
          </a>
      [#else]
      <a href="https://test.com/${changePasswordId}">
            Reset Password
          </a>
      [/#if]
      

      and it refuses to render.

      Any help here !

      posted in General Discussion
      E
      essamkayall1996