Fix bad strings

This commit is contained in:
Pierre HUBERT 2022-04-07 19:02:34 +02:00
parent 4e14e383b4
commit 91817bd2a4

View File

@ -108,12 +108,12 @@ pub async fn users_route(user: CurrentUser, users: web::Data<Addr<UsersActor>>,
}.to_string())
} else {
success = Some(match is_creating {
true => format!("User {} was successfully updated!", user.full_name()),
false => format!("Failed to update {}'s account!", user.full_name())
true => format!("User {} was successfully created!", user.full_name()),
false => format!("User {} was successfully updated!", user.full_name())
});
if let Some(pass) = new_password {
danger = Some(format!("{}'s temporary time password is {}", user.full_name(), pass));
danger = Some(format!("{}'s temporary password is {}", user.full_name(), pass));
}
}
}