Skip to content

Commit

Permalink
rm println
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Oct 22, 2019
1 parent 673112c commit 992a295
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/slack/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use failure::format_err;
use futures::future;
use futures::Future;
use futures::IntoFuture;
use log::error;
use oauth2::basic::BasicClient;
use oauth2::prelude::*;
use oauth2::AuthUrl;
Expand Down Expand Up @@ -102,11 +103,11 @@ fn auth_identity<T: AsyncCisClientTrait + 'static>(
// Check state token from im_crsf_state
if let Some(ref must_state) = session.get::<String>("identity_csrf_state").unwrap() {
if must_state != state.secret() {
println!("Error: Identity csrf state mismatch");
error!("Error: Identity csrf state mismatch");
return Box::new(future::ok(send_error_response()));
}
} else {
println!("Error: Missing identity csrf state");
error!("Error: Missing identity csrf state");
return Box::new(future::ok(send_error_response()));
}

Expand Down

0 comments on commit 992a295

Please sign in to comment.