<script custom-tag="" type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"How to redirect users to the CSM login page instead of the SSO login page after resetting their password.","image":"http://support.servicenow.com/29f1d2661baf6010cafa53d8624bcb43.iix","author":{"name":"ServiceNow Support","url":"http://support.servicenow.com/now"},"keywords":"ServiceNow, NowSupport public Knowledge Base articles, Support and Troubleshooting,KB0830085,password_reset_csm_portal, sso_login_page,redirect_csm,pwd_done_button","wordcount":"196","publisher":"ServiceNow","url":"https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0830085","datePublished":"2020-06-25","dateCreated":"2020-06-25","dateModified":"2024-04-08","description":"<h2>How to redirect users to the CSM login page instead of the SSO login page after resetting their password.</h2><br/><div style=\"overflow-x:auto\"><article><div ><h3 >Issue </h3><section><p>When user","articleBody":"<h2>How to redirect users to the CSM login page instead of the SSO login page after resetting their password.</h2><br/><div style=\"overflow-x:auto\"><article><div ><h3 >Issue </h3><section><p>When users in the CSM portal resets password they are redirected to the SSO login page post password reset process but instead, they should be redirected to the CSM login page.</p></section></div><div ><h3 >Release</h3><section><p>Any</p></section></div><div ><h3 >Cause</h3><section><p>During the password reset process, In the &#34;$pwd_confirm&#34; UI page when we click on the button: Done, it is navigating to SSO login page and the reason is as below<br /><br />1. Once the email verification section is done, it will navigate to UI page: $pwd_confirm<br /><br />https://&lt;&lt;instance-name&gt;&gt;/sys_ui_page.do?sys_id&#61;874ad840671022008b52f3b457415ab5&amp;sysparm_record_target&#61;sys_ui_page&amp;sysparm_record_row&#61;1&amp;sysparm_record_rows&#61;2&amp;sysparm_record_list&#61;nameCONTAINSpwd_confirm%5EORDERBYname<br /><br />2. In this UI page, we call a UI macro: $pwd_done_button<br /><br />https://&lt;&lt;instance-name&gt;&gt;.service-now.com/sys_ui_macro.do?sys_id&#61;fc749ea553122300dda1ddeeff7b12e0&amp;sysparm_view&#61;&amp;sysparm_domain&#61;null&amp;sysparm_domain_scope&#61;null&amp;sysparm_record_row&#61;1&amp;sysparm_record_rows&#61;1&amp;sysparm_record_list&#61;nameCONTAINSpwd_done_button%5eORDERBYname<br /><br />In this Ui macro, we have a script that calls the redirect URL to SSO login page as per OOB code<br /><br />&lt;?xml version&#61;&#34;1.0&#34; encoding&#61;&#34;utf-8&#34; ?&gt;<br />&lt;j:jelly trim&#61;&#34;false&#34; xmlns:j&#61;&#34;jelly:core&#34; xmlns:g&#61;&#34;glide&#34; xmlns:j2&#61;&#34;null&#34; xmlns:g2&#61;&#34;null&#34;&gt;<br />&lt;g:evaluate var&#61;&#34;jvar_login_origin&#34;&gt;<br />var storedLoginURL &#61; gs.getSession().getProperty(&#39;login_locate_sso.login_url&#39;);<br />var loginURL &#61; GlideStringUtil.notNil(storedLoginURL) ? storedLoginURL : &#39;/navpage.do&#39;;<br />loginURL;</p></section></div><div ><h3 >Resolution</h3><section><p>In the UI macro: $pwd_done_button</p>\r\n<p>Modify line 5 from<br /><br />var loginURL &#61; GlideStringUtil.notNil(storedLoginURL) ? storedLoginURL : &#39;/navpage.do&#39;;<br /><br />To<br /><br />var loginURL &#61; &#39;https://&lt;&lt;instance-name&gt;&gt;.service-now.com/csm&#39;;</p>\r\n<p><br /><br /><br /><br /><br /></p></section></div></article></div>"}</script>
  Loading...