create_user_change_password

Function create_user_change_password 

Source
pub async fn create_user_change_password(
    configuration: &Configuration,
    change_password_request: Option<ChangePasswordRequest>,
) -> Result<ChangePasswordResponse, Error<CreateUserChangePasswordError>>
Expand description

Changes a user’s password using their access token (JWT) instead of the changePasswordId A common use case for this method will be if you want to allow the user to change their own password. Remember to send refreshToken in the request body if you want to get a new refresh token when login using the returned oneTimePassword. OR Changes a user’s password using their identity (loginId and password). Using a loginId instead of the changePasswordId bypasses the email verification and allows a password to be changed directly without first calling the #forgotPassword method.