Fix bad strings
This commit is contained in:
parent
4e14e383b4
commit
91817bd2a4
@ -108,12 +108,12 @@ pub async fn users_route(user: CurrentUser, users: web::Data<Addr<UsersActor>>,
|
|||||||
}.to_string())
|
}.to_string())
|
||||||
} else {
|
} else {
|
||||||
success = Some(match is_creating {
|
success = Some(match is_creating {
|
||||||
true => format!("User {} was successfully updated!", user.full_name()),
|
true => format!("User {} was successfully created!", user.full_name()),
|
||||||
false => format!("Failed to update {}'s account!", user.full_name())
|
false => format!("User {} was successfully updated!", user.full_name())
|
||||||
});
|
});
|
||||||
|
|
||||||
if let Some(pass) = new_password {
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user