ADFS 3.0 Customizing Update Password Page

Sengupta, Amrita 26 Reputation points
2020-11-27T11:40:35.423+00:00

I have to customize the update password page for ADFS 3.0, such that after updating the password, custom message can be added, instead of the default message - "Your Password is successfully updated."

I have tried updating "expiredNotification" element in the OnLoad.js file, but that is not doing the trick.

Any pointers are greatly appreciated, as I am not getting any resources over the internet.

Thanks,

Amrita

Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,265 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pierre Audonnet - MSFT 10,191 Reputation points Microsoft Employee
    2020-11-30T18:52:05.37+00:00

    expiredNotification is the way to go though.

    The message is display in a span with the identifer expiredNotification. So you could check the content (innerHTML) of the span and if that's set to "Your password is successfully updated." then you replace the content with what you wish. Note that would work only for the language you are comparing it to.

    Something along these lines:

    var expiredNotification = document.getElementById('expiredNotification');
    if (expiredNotification)
    {
           if (expiredNotification.innerHTML == 'Your password is successfully updated.' )
           {
            expiredNotification.innerHTML = "Your new password is preeettttty cool!" ;
           }
    }
    
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sengupta, Amrita 26 Reputation points
    2020-12-03T13:36:57.827+00:00

    Hello Piaudonn,

    I tried to update the expiredNotification again, and it worked, however, in one of the environments, it is not reflecting.
    May be the issue is something else.
    I will check and report my findings...

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.