Skip to content

Commit

Permalink
Merge pull request #3 from fiji-flo/messages
Browse files Browse the repository at this point in the history
messaging
  • Loading branch information
fiji-flo authored Jun 6, 2019
2 parents bf4f8f4 + 3adfc75 commit 27c9d13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/bugzilla/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ fn auth<T: AsyncCisClientTrait + 'static>(
if must_state != state.secret() {
return Box::new(future::ok(
HttpResponse::Found()
.header(http::header::LOCATION, "/error")
.header(http::header::LOCATION, "/e?identityAdded=error")
.finish(),
));
}
} else {
return Box::new(future::ok(
HttpResponse::Found()
.header(http::header::LOCATION, "/error")
.header(http::header::LOCATION, "/e?identityAdded=error")
.finish(),
));
}
Expand Down Expand Up @@ -118,7 +118,7 @@ fn auth<T: AsyncCisClientTrait + 'static>(
})
.and_then(|_| {
HttpResponse::Found()
.header(http::header::LOCATION, "/e")
.header(http::header::LOCATION, "/e?identityAdded=bugzilla")
.finish()
}),
)
Expand Down
8 changes: 4 additions & 4 deletions src/github/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ fn auth<T: AsyncCisClientTrait + 'static>(
if must_state != state.secret() {
return Box::new(future::ok(
HttpResponse::Found()
.header(http::header::LOCATION, "/error")
.header(http::header::LOCATION, "/e?identityAdded=error")
.finish(),
));
}
} else {
return Box::new(future::ok(
HttpResponse::Found()
.header(http::header::LOCATION, "/error")
.header(http::header::LOCATION, "/e?identityAdded=error")
.finish(),
));
}
Expand Down Expand Up @@ -150,14 +150,14 @@ fn auth<T: AsyncCisClientTrait + 'static>(
})
.and_then(|_| {
HttpResponse::Found()
.header(http::header::LOCATION, "/e")
.header(http::header::LOCATION, "/e?identityAdded=github")
.finish()
}),
);
}
Box::new(future::ok(
HttpResponse::Found()
.header(http::header::LOCATION, "/error")
.header(http::header::LOCATION, "/e?identityAdded=error")
.finish(),
))
}
Expand Down

0 comments on commit 27c9d13

Please sign in to comment.