How to Redirect to Portal after Self Service Password Reset

ron_tavares
ServiceNow Employee
ServiceNow Employee

I have a Link on the login page of the Service Portal, that takes the user to the OOTB Self Service Password Reset.   User clicks on that, enters the User ID, Email Address, gets a message that an email has been sent, clicks on the [Done] button, then the user is redirected to the standard URL, which then routes them to the customer's SSO Login Page.   What I want is to have the Password Reset process redirect to the customer's Portal URL.   Is there a way to do this in Password Reset?

Thanks,

.ron

1 ACCEPTED SOLUTION

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Hi Ron,



Password Reset uses a UI Page which contains the "Done" button. The UI page is called "$pwd_confirm".


Part of that page you can modify the URL that is used when clicking on "Done" button, see below:



<center id="$pwd_confirm">


<div class="pwd-notification-box pwd-page-box">


    <i class="icon-success pwd-icon pwd-icon-success"/>


<span class="pwd-title">${gs.getMessage("An email has been sent to you providing instructions to reset your password")}</span>


<span class="col-sm-12">


    <button name="sysverb_pwd_done" id="sysverb_pwd_done" onclick="window.top.location.href='/navpage.do'"


    class="btn btn-primary btn-pwd-submit">${gs.getMessage("Done")}</button>


</span>


</div>


</center>



Hope this helps.


View solution in original post

5 REPLIES 5

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Hi Ron,



Password Reset uses a UI Page which contains the "Done" button. The UI page is called "$pwd_confirm".


Part of that page you can modify the URL that is used when clicking on "Done" button, see below:



<center id="$pwd_confirm">


<div class="pwd-notification-box pwd-page-box">


    <i class="icon-success pwd-icon pwd-icon-success"/>


<span class="pwd-title">${gs.getMessage("An email has been sent to you providing instructions to reset your password")}</span>


<span class="col-sm-12">


    <button name="sysverb_pwd_done" id="sysverb_pwd_done" onclick="window.top.location.href='/navpage.do'"


    class="btn btn-primary btn-pwd-submit">${gs.getMessage("Done")}</button>


</span>


</div>


</center>



Hope this helps.


Thanks Sergiu,


I did open a Question Incident with SN Support, and they came back with the same solution that you proposed. I have applied this change and it works.   Still I wish there were a less 'Global' type change.   Like a setting on the Password Reset Process table where you can set a redirect.   But it would appear your solution is the only option, and it does work.



Thanks again,


.ron


patricklatella
Mega Sage

I'm looking to do exactly this same thing, change the redirect after clicking the "Done" button in the "Pwd reset" widget...but I'm doing it for a specific client facing portal's password reset...so I'd like to be able to do this completely independent of the internal "sp" portal.  I've created an exact copy of the "$pwd_confirm" page...new UI Page is '$pwd_confirm_client_facing".  So far I've done no edits yet at all to this new UI Page.  I have then also cloned the "Pwd reset" widget and changed the client controller script to put in this new UI Page.  However when I do so, it breaks the widget.  I'm just trying to match the exact functionality of the "Pwd reset" widget with my 2 custom elements, the UI Page and the cloned widget before I do anything to the "Done" button's redirect.  Any help with what I'm missing would be great...thanks.

 

find_real_file.png

Hi

Were you able to get any solution on this?