Skip to content

Commit c399ebf

Browse files
authored
Merge pull request #4 from fiji-flo/update-things
Update things
2 parents a5a6971 + a1f0ae3 commit c399ebf

5 files changed

Lines changed: 40 additions & 47 deletions

File tree

Cargo.lock

Lines changed: 30 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ default = []
99
nouid = []
1010

1111
[dependencies]
12-
cis_client = { git = "https://github.com/fiji-flo/cis_client-rust", branch = "async", version = "0.1.0-beta.1" }
13-
cis_profile = { git = "https://github.com/fiji-flo/cis_profile-rust", branch = "ring-14", version = "0.0.3" }
12+
cis_client = { git = "https://github.com/fiji-flo/cis_client-rust", branch = "async-2", version = "0.1.0-beta.2" }
13+
cis_profile = { git = "https://github.com/fiji-flo/cis_profile-rust", branch = "0.1.0", version = "0.1.0" }
1414
oauth2 = "2.0.0-beta.2"
1515
url = "1.7.2"
1616
base64 = "0.10.1"

src/bugzilla/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub struct BugZillaUser {
4949

5050
fn redirect(client: web::Data<Arc<BasicClient>>, session: Session) -> impl Responder {
5151
let (authorize_url, csrf_state) = client.authorize_url(CsrfToken::new_random);
52-
println!("settting: {}", csrf_state.secret());
52+
info!("settting: {}", csrf_state.secret());
5353
session
5454
.set("csrf_state", csrf_state.secret().clone())
5555
.map(|_| {

src/github/app.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn id_to_username(id: web::Path<String>) -> impl Future<Item = HttpResponse, Err
6363
.send()
6464
.map_err(Into::into)
6565
.and_then(|mut res| {
66-
println!("status: {}", res.status());
66+
info!("status: {}", res.status());
6767
res.json::<GitHubUser>().map_err(Into::into)
6868
})
6969
.and_then(|user| {
@@ -75,7 +75,7 @@ fn id_to_username(id: web::Path<String>) -> impl Future<Item = HttpResponse, Err
7575

7676
fn redirect(client: web::Data<Arc<BasicClient>>, session: Session) -> impl Responder {
7777
let (authorize_url, csrf_state) = client.authorize_url(CsrfToken::new_random);
78-
println!("settting: {}", csrf_state.secret());
78+
info!("settting: {}", csrf_state.secret());
7979
session
8080
.set("csrf_state", csrf_state.secret().clone())
8181
.map(|_| {
@@ -94,9 +94,9 @@ fn auth<T: AsyncCisClientTrait + 'static>(
9494
) -> Box<dyn Future<Item = HttpResponse, Error = Error>> {
9595
let code = AuthorizationCode::new(query.code.clone());
9696
let state = CsrfToken::new(query.state.clone());
97-
println!("remote: {}", state.secret());
97+
info!("remote: {}", state.secret());
9898
if let Some(ref must_state) = session.get::<String>("csrf_state").unwrap() {
99-
println!("session: {}", must_state);
99+
info!("session: {}", must_state);
100100
if must_state != state.secret() {
101101
return Box::new(future::ok(
102102
HttpResponse::Found()
@@ -124,11 +124,11 @@ fn auth<T: AsyncCisClientTrait + 'static>(
124124
.send()
125125
.map_err(Into::into)
126126
.and_then(|mut res| {
127-
println!("status: {}", res.status());
127+
info!("status: {}", res.status());
128128
res.json::<GitHubUser>().map_err(Into::into)
129129
})
130130
.and_then(move |j| {
131-
println!("login: {}, id: {}", j.login, j.node_id);
131+
info!("login: {}, id: {}", j.login, j.node_id);
132132
get.get_user_by(&get_uid, &GetBy::UserId, None)
133133
.and_then(move |profile: Profile| {
134134
update_github(

src/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn update_and_sign(
6969
) -> Result<(), Error> {
7070
field.value = Some(value);
7171
if field.metadata.display.is_none() {
72-
field.metadata.display = Some(Display::Private);
72+
field.metadata.display = Some(Display::Staff);
7373
}
7474
field.metadata.last_modified = now.to_owned();
7575
field.signature.publisher.name = PublisherAuthority::Mozilliansorg;

0 commit comments

Comments
 (0)