Skip to content

Commit

Permalink
chore: update rocket related dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
msyfls123 committed Feb 20, 2024
1 parent c20323d commit f8dbd0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ indradb-lib = { version = "3.0.3", features = ["rocksdb-datastore"] }
serde_json = "1.0.75"
handlebars = "4.2.2"
serde = "1.0.135"
juniper_rocket = "0.8.2"
juniper = "0.15.8"
juniper_rocket = { git = "https://github.com/graphql-rust/juniper.git", rev = "ac6e609" }
juniper = { git = "https://github.com/graphql-rust/juniper.git", rev = "ac6e609" }

[dependencies.rocket]
version = "0.5.0-rc.2"
version = "0.5"
features = ["json", "uuid"]

[dependencies.rocket_dyn_templates]
version = "0.1.0-rc.2"
version = "0.1.0-rc.4"
features = ["handlebars"]

[dependencies.rocket_auth]
version = "0.4.0"
git = "https://github.com/msyfls123/rocket_auth.git"
branch = "fix/outcome"
features = ["rusqlite"]
4 changes: 2 additions & 2 deletions server/src/view/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ impl<'a> FromRequest<'a> for SPAInfo {
Outcome::Success(user) => Outcome::Success(SPAInfo {
user: Some(user),
}),
Outcome::Failure(_) => Outcome::Success(SPAInfo {
Outcome::Error(_) => Outcome::Success(SPAInfo {
user: None,
}),
Outcome::Forward(_) => Outcome::Failure((Status::from_code(401).unwrap(), ())),
Outcome::Forward(_) => Outcome::Error((Status::from_code(401).unwrap(), ())),
}

}
Expand Down

0 comments on commit f8dbd0b

Please sign in to comment.