142 views

Description

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.

Release or Environment

Any

Cause

During the password reset process, In the "$pwd_confirm" UI page when we click on the button: Done, it is navigating to SSO login page and the reason is as below

1. Once the email verification section is done, it will navigate to UI page: $pwd_confirm

https://<<instance-name>>/sys_ui_page.do?sys_id=874ad840671022008b52f3b457415ab5&sysparm_record_target=sys_ui_page&sysparm_record_row=1&sysparm_record_rows=2&sysparm_record_list=nameCONTAINSpwd_confirm%5EORDERBYname

2. In this UI page, we call a UI macro: $pwd_done_button

https://<<instance-name>>.service-now.com/sys_ui_macro.do?sys_id=fc749ea553122300dda1ddeeff7b12e0&sysparm_view=&sysparm_domain=null&sysparm_domain_scope=null&sysparm_record_row=1&sysparm_record_rows=1&sysparm_record_list=nameCONTAINSpwd_done_button%5eORDERBYname

In this Ui macro, we have a script that calls the redirect URL to SSO login page as per OOB code

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:evaluate var="jvar_login_origin">
var storedLoginURL = gs.getSession().getProperty('login_locate_sso.login_url');
var loginURL = GlideStringUtil.notNil(storedLoginURL) ? storedLoginURL : '/navpage.do';
loginURL;

Resolution

In the UI macro: $pwd_done_button

Modify line 5 from

var loginURL = GlideStringUtil.notNil(storedLoginURL) ? storedLoginURL : '/navpage.do';

To

var loginURL = 'https://<<instance-name>>.service-now.com/csm';






Article Information

Last Updated:2020-06-25 16:47:02
Published:2020-06-25