Skip to content

Commit

Permalink
refactor(backend): remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenclaw900 committed Nov 20, 2021
1 parent 6603a7f commit e13faf7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ fn main() {
.and(warp::body::bytes())
.map(|pass| {
if CONFIG.pass {
dbg!(&pass);
let mut hasher = Sha512::new();
hasher.update(pass);
let shasum = format!("{:x?}", hasher.finalize())
.split(&['[', ']', ',', ' '][..])
.collect::<String>();
dbg!(&shasum, &CONFIG.hash);
if shasum == CONFIG.hash {
let mut claims = jwts::Claims::new();
claims.exp = Some(
Expand Down

0 comments on commit e13faf7

Please sign in to comment.