Function ccash_rs::methods::admin::change_password [−][src]
pub async fn change_password(
session: &CCashSession,
admin_user: &CCashUser,
user: &mut CCashUser,
new_password: &str
) -> Result<bool, CCashError>
Expand description
Changes the password for the user
. This function modifies
user
to use the new_password
instead of the previous password in the
case of a successful password change. This function requires
admin_user
to be equal to the admin user of the CCash
instance.