Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sabotack committed Nov 13, 2023
1 parent 7f6f288 commit 671ec06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/ecdar_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl EcdarApiAuth for ConcreteEcdarApi {
let message = request.get_ref().clone();
let uid: String;
let temp: User;

if let Some(user_credentials) = message.user_credentials {
if let Some(user) = user_credentials.user {
temp = match user {
Expand Down Expand Up @@ -244,9 +244,9 @@ impl EcdarApiAuth for ConcreteEcdarApi {
}
}
};

uid = temp.id.to_string();

if user_credentials.password != temp.password {
return Err(Status::new(Code::Unauthenticated, "Wrong password"));
}
Expand Down

0 comments on commit 671ec06

Please sign in to comment.