Change Password Link/Button on Login Page

Hi,

We have a requirement to provide the users with a functionality to change their passwords on the login screen. To meet this requirement I am able to show a "Change Password" button on the login page but when I click on it, it's not redirecting me to the "changepassword.jsp" page. It's showing the first screen or the login screen only. However the url of that screen gets changed to /suite/tempo/personalization/changepassword.jsp once the link is clicked.

Can anyone tell me what I am missing and how can I achieve this functionality?

Below is the code added in login.jsp page -

JavaScript function

<script type="text/javascript">
function openPage(pageURL)
{
window.location.href = pageURL;
}
</script>

JSP code

<input type="button" value="Change Password" name="ChangePwd"
          onclick="openPage('personalization/changepassword.jsp')"/>

Thanks,
Varnika

OriginalPostID-251522

  Discussion posts and replies are publicly visible

Parents
  • @Varnikam: Sorry, I just saw the comment now. By absolute I mean complete path.
    like http://www.domainname.com/pathURL ('personalization/changepassword.jsp'). If you provide as relative, which is the current case. The relative path, automatically calculates the given path based on the website URL. It is always a good practice to give complete path.

    May be you can check the below link:

    http://stackoverflow.com/questions/21306512/difference-between-relative-path-and-absolute-path-in-javascript

Reply
  • @Varnikam: Sorry, I just saw the comment now. By absolute I mean complete path.
    like http://www.domainname.com/pathURL ('personalization/changepassword.jsp'). If you provide as relative, which is the current case. The relative path, automatically calculates the given path based on the website URL. It is always a good practice to give complete path.

    May be you can check the below link:

    http://stackoverflow.com/questions/21306512/difference-between-relative-path-and-absolute-path-in-javascript

Children
No Data