diff --git a/src/bugzilla/app.rs b/src/bugzilla/app.rs index d234d25..deb9950 100644 --- a/src/bugzilla/app.rs +++ b/src/bugzilla/app.rs @@ -73,14 +73,14 @@ fn auth( 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(), )); } @@ -118,7 +118,7 @@ fn auth( }) .and_then(|_| { HttpResponse::Found() - .header(http::header::LOCATION, "/e") + .header(http::header::LOCATION, "/e?identityAdded=bugzilla") .finish() }), ) diff --git a/src/github/app.rs b/src/github/app.rs index 05f2e77..a175a6f 100644 --- a/src/github/app.rs +++ b/src/github/app.rs @@ -100,14 +100,14 @@ fn auth( 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(), )); } @@ -150,14 +150,14 @@ fn auth( }) .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(), )) }