Skip to content

Commit 27c9d13

Browse files
authored
Merge pull request #3 from fiji-flo/messages
messaging
2 parents bf4f8f4 + 3adfc75 commit 27c9d13

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/bugzilla/app.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ fn auth<T: AsyncCisClientTrait + 'static>(
7373
if must_state != state.secret() {
7474
return Box::new(future::ok(
7575
HttpResponse::Found()
76-
.header(http::header::LOCATION, "/error")
76+
.header(http::header::LOCATION, "/e?identityAdded=error")
7777
.finish(),
7878
));
7979
}
8080
} else {
8181
return Box::new(future::ok(
8282
HttpResponse::Found()
83-
.header(http::header::LOCATION, "/error")
83+
.header(http::header::LOCATION, "/e?identityAdded=error")
8484
.finish(),
8585
));
8686
}
@@ -118,7 +118,7 @@ fn auth<T: AsyncCisClientTrait + 'static>(
118118
})
119119
.and_then(|_| {
120120
HttpResponse::Found()
121-
.header(http::header::LOCATION, "/e")
121+
.header(http::header::LOCATION, "/e?identityAdded=bugzilla")
122122
.finish()
123123
}),
124124
)

src/github/app.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ fn auth<T: AsyncCisClientTrait + 'static>(
100100
if must_state != state.secret() {
101101
return Box::new(future::ok(
102102
HttpResponse::Found()
103-
.header(http::header::LOCATION, "/error")
103+
.header(http::header::LOCATION, "/e?identityAdded=error")
104104
.finish(),
105105
));
106106
}
107107
} else {
108108
return Box::new(future::ok(
109109
HttpResponse::Found()
110-
.header(http::header::LOCATION, "/error")
110+
.header(http::header::LOCATION, "/e?identityAdded=error")
111111
.finish(),
112112
));
113113
}
@@ -150,14 +150,14 @@ fn auth<T: AsyncCisClientTrait + 'static>(
150150
})
151151
.and_then(|_| {
152152
HttpResponse::Found()
153-
.header(http::header::LOCATION, "/e")
153+
.header(http::header::LOCATION, "/e?identityAdded=github")
154154
.finish()
155155
}),
156156
);
157157
}
158158
Box::new(future::ok(
159159
HttpResponse::Found()
160-
.header(http::header::LOCATION, "/error")
160+
.header(http::header::LOCATION, "/e?identityAdded=error")
161161
.finish(),
162162
))
163163
}

0 commit comments

Comments
 (0)