Change Password Page Title when Login in First Time vs Second Time

Overview

This article details how to display a custom password page title while logging in for the first time vs the second time.

Solution

It is possible to pass arbitrary data via the hash fragment in the ticket URL and read the value(s) in the customized password reset page to present it differently depending on the context.

The ticket URL can be appended with something like #type=create***,*** and then inside the password reset page, parse window.location.hash to check whether type === ‘create’, and if so, set the page title accordingly.

Related References