From 3adfc752a88ca63bb36cf2ba14f6857e164b6834 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 6 Jun 2019 10:55:15 +0200 Subject: [PATCH] messaging --- src/bugzilla/app.rs | 6 +++--- src/github/app.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) 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(), )) }