auth::password::can_change_p (public)

 auth::password::can_change_p -user_id user_id

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

Returns whether we can change the password for the given user. This depends on the user's authority and the configuration of that authority.

Switches:
-user_id
(required)
The ID of the user whose password you want to change.
Returns:
1 if the user can change password, 0 otherwise.

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_password_can_change_reset_retrieve_p auth_password_can_change_reset_retrieve_p (test acs-authentication) auth::password::can_change_p auth::password::can_change_p test_auth_password_can_change_reset_retrieve_p->auth::password::can_change_p acs_user::get_user_info acs_user::get_user_info (public) auth::password::can_change_p->acs_user::get_user_info ad_log ad_log (public) auth::password::can_change_p->ad_log ad_try ad_try (public) auth::password::can_change_p->ad_try auth::password::CanChangePassword auth::password::CanChangePassword (private) auth::password::can_change_p->auth::password::CanChangePassword packages/acs-admin/lib/password-update.tcl packages/acs-admin/ lib/password-update.tcl packages/acs-admin/lib/password-update.tcl->auth::password::can_change_p packages/acs-subsite/www/user/password-reset.tcl packages/acs-subsite/ www/user/password-reset.tcl packages/acs-subsite/www/user/password-reset.tcl->auth::password::can_change_p packages/acs-subsite/www/user/password-update.tcl packages/acs-subsite/ www/user/password-update.tcl packages/acs-subsite/www/user/password-update.tcl->auth::password::can_change_p

Testcases:
auth_password_can_change_reset_retrieve_p
Source code:
    set authority_id [acs_user::get_user_info -user_id $user_id -element authority_id]

    set result_p 0
    ad_try {
        set result_p [auth::password::CanChangePassword -authority_id $authority_id]
    } on error {errorMsg} {
        ad_log Error "Error invoking CanChangePassword operation for authority_id $authority_id"
    }
    return $result_p
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: