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):
- 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_pXQL Not present: Generic, PostgreSQL, Oracle