Redirect login_cpw? to custom page

haniberkovich
Kilo Contributor

Hi all,

As our requirements we need to create custom page instead of login_cpw.

I need solution for any time system throw user to this page - redirect it to my custom page.

I see this solution Using different password change page after login

but- i want way that treat only on url redirect and not create custom Need Password Reset field ,

Thanks

Hani

5 REPLIES 5

paolasalcido
Kilo Guru

Hi Hani,


for security, ServiceNow restricts the access to modify the page login_cpw. I recommend reading the following thread



Removing or modifying the default ServiceNow login page - ServiceNow Guru




Mark Correct if it solved your issue or hit Like and Helpful.


HI Paola,



Thanks for your answer.


I see this link before ,


But i get you more details under our instance we are manged some portals.


SO if i did change i have to it only for spesific portal,


Secondly - the issue is about change password only,


i re-wriw before the login page to custom widget ,


but after calling to


this request- took from OOB functionality .




data: urlTools.encodeURIParameters({


'sysparm_type': 'login',


'ni.nolog.user_password': true,


'remember_me': !!c.remember_me ? true : false,


'user_name': username,


'user_password': password,


'get_redirect_url': true,


'sysparm_goto_url': isLoginPage ? null : $location.url()


}),



If user need to reset password , this proccess redirect him to login_cpw.


i tried to catch it in window but this is more sstrong and coming to this page.


also try catch this redirect in controller.spPage.js


but also not help.


Please give ypur advise


Thanks


Hani



Hi Hani,



We are working in same kind of situation where we have to manage multiple portals and also the reset password.


Now when a user resets the password in our system, he is redirected to login_cpw.do .



To manage Login into multiple portals you need to make changes in SPentrypage script include.


And if you want to redirect the user to a custom page every time he logins then you can try changing the property of "glide.login.home" to blank value.



You can find property in sys_properties table.



Regards,


Lokesh Garg



P.S. : Please mark helpful or correct.


dhanu3
Kilo Sage

Hi Hani,

 

Did you get any solution on this?