I am trying to customize password expiration in Sitecore 8.1.
As mentioned in this article I have added a pipeline before the LogingIn pipeline to check whether the time span for password expiration has exceeded for the user and if exceeded the user is navigated to changepassword.aspx
page.
In Sitecore 8.2 change password opens as a dialog which is available in /sitecore/shell/Applications/Security/ChangePassword/changepassword.aspx
.
As per this Sitecore beta question I tried to create a custom changepassword.aspx
by copying from original page and placing it in sitecore/login/
I changed the login
site definition to include loginPage
property (ex: <site name="login" ... loginPage="/sitecore/login" />
)
When I click the Login button on the home screen instead of getting redirected to changepassword.aspx
page, it's loading the same page with returnUrl=%2Fsitecore%2Flogin%2Fcustomchangepassword.aspx
appended to the URL as a query string.
Please suggest a way to redirect to customchangepassword.aspx
.