
User1573524638714754949 (Customer) asked a question.
Trying to display some help text on Forgot Password page but unable to make it because of controller context is returning null when clicking on Forgot Password.
Below is the piece of code using for trying to set some text on forgot password page.
oktaSignIn.on('afterRender', function (context){
console.log("Contoller context", context.controller); //returning null when I click on forgot password
} );
Unable to handle the forgot page with null response from the controller.
Note- Here trying to modify Okta Hosted SIW only for custom domain.
Examples :
Contoller context primary-auth for the page where entering the username.
Contoller context mfa-verify-password for the page where entering the password
*Contoller context null for the page Forgot Password

Hi @User1573524638714754949 (Customer) , Thank you for reaching out to the Okta Community!
I've been looking into this but I'm not finding any explicit solution for the error you are seeing.
The Forgot password page customization seems to be fairly limited.
Something similar was discussed in a previous post:
https://support.okta.com/help/s/question/0D54z00007lNhopCAC/okta-reset-password-and-forgot-password-page-style-and-markup-customizations?language=en_US
There's also this article: https://support.okta.com/help/s/article/How-to-Customize-the-Password-Reset-Page-for-Okta?language=en_US which leads to a blog post containing advice about a custom solution: https://www.ciam.ninja/post/okta-implementing-a-custom-password-reset-page-with-a-pro-code-approach
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--
Join the discussion for the Ask Me Anything online event on May 23, 2024 with Okta Tactical Edge Product Experts