aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-04-11 16:38:14 +0300
committerYigit Sever2021-04-11 16:38:14 +0300
commit7288f4f693406a8c0e2c4de6718539547e55a8bc (patch)
treea07336ef827ff1df84c05d7ffc18416550a276c6
parent001a9ac21c29af53d31e9710d12e37d565880207 (diff)
downloadgradecoin-7288f4f693406a8c0e2c4de6718539547e55a8bc.tar.gz
gradecoin-7288f4f693406a8c0e2c4de6718539547e55a8bc.tar.bz2
gradecoin-7288f4f693406a8c0e2c4de6718539547e55a8bc.zip
cannot consume body twiceauth
-rw-r--r--src/auth.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 51b2e6a..2fcc7a6 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -100,7 +100,10 @@ async fn authorize(
100 a: decoded.claims.puk, 100 a: decoded.claims.puk,
101 }) 101 })
102 } 102 }
103 Err(e) => return Err(warp::reject::custom(RateLimited)), 103 Err(e) => {
104 println!("HELLOO");
105 return Err(warp::reject::custom(RateLimited));
106 }
104 } 107 }
105} 108}
106 109