<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Checking for user.roles if it is equal to a specific role and based on that determine the URL Forgot-Password]]></title><description><![CDATA[<p dir="auto">I have a case where I have two websites for the same Fusionauth application</p>
<p dir="auto">So I am trying to differentiate the Reset-Password URL based on the role</p>
<p dir="auto">how can I achieve such a case in the template.</p>
<p dir="auto">I have tried this</p>
<pre><code>[#if user.roles?? &amp;&amp; "client" in user.roles]
&lt;a href="https://test.com/${changePasswordId}"&gt;
      Reset Password
    &lt;/a&gt;
[#else]
&lt;a href="https://test.com/${changePasswordId}"&gt;
      Reset Password
    &lt;/a&gt;
[/#if]
</code></pre>
<p dir="auto">and it refuses to render.</p>
<p dir="auto">Any help here !</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2668/checking-for-user-roles-if-it-is-equal-to-a-specific-role-and-based-on-that-determine-the-url-forgot-password</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 10:07:39 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2668.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 May 2024 02:24:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Checking for user.roles if it is equal to a specific role and based on that determine the URL Forgot-Password on Fri, 03 May 2024 14:25:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2991">@essamkayall1996</a> Are you able to debug and confirm "client' is in the list of user.roles?  Also are you saying that no page renders? What error message are you getting?  It looks like in either case of if statement that you are returning the same page.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7224</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7224</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Fri, 03 May 2024 14:25:35 GMT</pubDate></item></channel></rss>