pub async fn change_user_password(
context: &Context<'_>,
user_name: &str,
new_password: &str,
) -> Result<()>Expand description
Changes a user’s password by generating a new salt and hash.
The record is rewritten in the current format: a version 0 record is
upgraded to version 1 and records the home it already used
(/users/<identifier>), so its home does not move.
§Errors
- File system errors (opening, reading, writing user file)
- Salt generation failures
- JSON parsing errors