Skip to content

Commit

Permalink
messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Jun 6, 2019
1 parent bf4f8f4 commit 3adfc75
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 3adfc75

Please sign in to comment.