Skip to content

Commit

Permalink
Fixes a typo in a message
Browse files Browse the repository at this point in the history
  • Loading branch information
ogarcia committed Jan 18, 2025
1 parent 60d9a78 commit 68d6f5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] and deleted 1 old tokens"}"#);
assert_eq!(response.into_string().await.unwrap(), r#"{"detail":"Password changed for user [email protected] and deleted 1 old tokens"}"#);
}

#[rocket::async_test]
Expand Down
2 changes: 1 addition & 1 deletion src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 68d6f5c

Please sign in to comment.