Redirect login_cpw? to custom page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 09:05 AM
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
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 10:44 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 10:29 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 04:09 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2021 06:59 AM
Hi Hani,
Did you get any solution on this?