diff --git a/src/main.rs b/src/main.rs index 68b7652..2c2c230 100644 --- a/src/main.rs +++ b/src/main.rs @@ -317,7 +317,7 @@ mod tests { .body(r#"{"current_password":"test","new_password":"new"}"#); let response = request.dispatch().await; assert_eq!(response.status(), Status::Ok); - assert_eq!(response.into_string().await.unwrap(), r#"{"detail":"Passwod changed for user test@rockpass.sample and deleted 1 old tokens"}"#); + assert_eq!(response.into_string().await.unwrap(), r#"{"detail":"Password changed for user test@rockpass.sample and deleted 1 old tokens"}"#); } #[rocket::async_test] diff --git a/src/routes.rs b/src/routes.rs index 072256e..69a1841 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -303,7 +303,7 @@ pub async fn post_auth_users_set_password(authorization: Authorization, new_user Ok(rows) => rows, Err(_) => 0 }; - status::Custom(Status::Ok, Json(json!({"detail": format!("Passwod changed for user {} and deleted {} old tokens", authorization.1.email, deleted_rows)}))) + status::Custom(Status::Ok, Json(json!({"detail": format!("Password changed for user {} and deleted {} old tokens", authorization.1.email, deleted_rows)}))) } } } else {