Hi! This is pretty easy to do in advanced customization.
This was tested on 11.6.0 HF-6 so you might have to adjust for line numbers of the customization code.
Navigate to "Customization" > "Advanced" and then expand the access profile > access policy > logon pages > logon page > logon.inc
Around line 73 find the following if statement and modify
if( $GLOBALS["set_new_password"] ){
$fields_settings[1]["caption"] = "%[new_password]";
$fields_settings[2] = array( "type" => "password", "name" => "_F5_verify_password", "varname" => "verify_password", "rw" => "1", "caption" => "%[verify_password]" );
}
to add the alert_pw php variable.
if( $GLOBALS["set_new_password"] ){
$fields_settings[1]["caption"] = "%[new_password]";
$fields_settings[2] = array( "type" => "password", "name" => "_F5_verify_password", "varname" => "verify_password", "rw" => "1", "caption" => "%[verify_password]" );
$alert_pw = 1;
}
Next we will go to around line 474 (right under the body tag) and add the following.
to
This will produce a JavaScript alert on the password change page.
Hope this helps, please let me know if you have any questions.
-Seth