Perform the "zeroize" operation even if the password hashing fails.
|
let password = hash_password(&account_attributes.password).map_err(|e| { |
|
log::error!("Hashing password failed: {:?}", e); |
|
EndpointError::internal() |
|
})?; |
|
account_attributes.password.zeroize(); |
Perform the "zeroize" operation even if the password hashing fails.
backend/services/identity_service/src/operations/create_account.rs
Lines 25 to 29 in d86fb29