auth::local::password::notify_changed (private)

 auth::local::password::notify_changed user_id

Defined in packages/acs-authentication/tcl/local-procs.tcl

Send the configured password-change notification.

Parameters:
user_id (required)

Partial Call Graph (max 5 caller/called nodes):
auth::local::password::ChangePassword auth::local::password::ChangePassword (private) auth::local::password::notify_changed auth::local::password::notify_changed auth::local::password::ChangePassword->auth::local::password::notify_changed auth::local::password::complete_recovery auth::local::password::complete_recovery (public) auth::local::password::complete_recovery->auth::local::password::notify_changed _ _ (public) auth::local::password::notify_changed->_ acs_mail_lite::send acs_mail_lite::send (public) auth::local::password::notify_changed->acs_mail_lite::send acs_user::get_user_info acs_user::get_user_info (public) auth::local::password::notify_changed->acs_user::get_user_info ad_acs_kernel_id ad_acs_kernel_id (public) auth::local::password::notify_changed->ad_acs_kernel_id ad_log ad_log (public) auth::local::password::notify_changed->ad_log

Testcases:
No testcase defined.
Source code:
    if { [parameter::get -parameter EmailAccountOwnerOnPasswordChangeP -package_id [ad_acs_kernel_id] -default 1] } {
        ad_try {
            set user_email [party::get -party_id $user_id -element email]

            set system_name [ad_system_name]
            set pvt_home_name [ad_pvt_home_name]
            set password_update_link_text [_ acs-subsite.Change_my_Password]

            if { [auth::UseEmailForLoginP] } {
                set account_id_label [_ acs-subsite.Email]
                set account_id $user_email
            } else {
                set account_id_label [_ acs-subsite.Username]
                set account_id [acs_user::get_user_info  -user_id $user_id  -element username]
            }

            set subject [_ acs-subsite.Password_changed_subject]
            set body [_ acs-subsite.Password_changed_body]

            acs_mail_lite::send  -send_immediately  -to_addr $user_email  -from_addr [ad_outgoing_sender]  -subject $subject  -body $body
        } on error {errorMsg} {
            ad_log Error "Error sending out password changed notification to account owner with user_id $user_id, email $user_email: $errorMsg"
        }
    }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-authentication/tcl/local-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: