Create Account endpoint works

This commit is contained in:
Cameron Cordes committed 2020-07-08 09:19:27 -04:00
1 parent e3bb607d95
commit 82203d9a41
3 files changed
+27 -12

No files matched your search

+1 -5
View File
@@ -20,11 +20,7 @@ impl FromStr for Claims {
type Err = jsonwebtoken::errors::Error;
fn from_str(s: &str) -> Result<Self, Self::Err> {
let token = *(s
.split("Bearer ")
.collect::<Vec<_>>()
.last()
.unwrap_or(&""));
let token = *(s.split("Bearer ").collect::<Vec<_>>().last().unwrap_or(&""));
println!("Parsing token: '{}'", token);
match decode::<Claims>(