Create Account endpoint works

This commit is contained in:
Cameron Cordes
2020-07-08 09:19:27 -04:00
parent e3bb607d95
commit 82203d9a41
3 changed files with 27 additions and 12 deletions

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>(