diff options
author | Yigit Sever | 2021-04-18 19:19:19 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-18 19:19:19 +0300 |
commit | baeb45571c7a07dc1b585abc5012650bfe32673d (patch) | |
tree | b5e7a4fac8fb26ac2834b848d3c06dd1e4e32eb5 | |
parent | 7eed1cac791e9f78938c057b32bffc79e5249672 (diff) | |
download | gradecoin-baeb45571c7a07dc1b585abc5012650bfe32673d.tar.gz gradecoin-baeb45571c7a07dc1b585abc5012650bfe32673d.tar.bz2 gradecoin-baeb45571c7a07dc1b585abc5012650bfe32673d.zip |
New user and verbose JWT errors
-rw-r--r-- | src/handlers.rs | 2 | ||||
-rw-r--r-- | src/schema.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/handlers.rs b/src/handlers.rs index f1fd1e0..f6e1f9f 100644 --- a/src/handlers.rs +++ b/src/handlers.rs | |||
@@ -723,7 +723,7 @@ fn authorize_proposer(jwt_token: String, user_pem: &str) -> Result<TokenData<Cla | |||
723 | } | 723 | } |
724 | _ => { | 724 | _ => { |
725 | warn!("AN UNSPECIFIED ERROR: {:?}", err); | 725 | warn!("AN UNSPECIFIED ERROR: {:?}", err); |
726 | return Err(String::from("Unspecified error")); | 726 | return Err(format!("JWT Error: {}", err)); |
727 | } | 727 | } |
728 | }, | 728 | }, |
729 | }; | 729 | }; |
diff --git a/src/schema.rs b/src/schema.rs index 957f0a9..eae60af 100644 --- a/src/schema.rs +++ b/src/schema.rs | |||
@@ -293,6 +293,7 @@ lazy_static! { | |||
293 | ("e223786", "UxI6czykJfp9T9N"), | 293 | ("e223786", "UxI6czykJfp9T9N"), |
294 | ("e231060", "VJgziofQQPCoisH"), | 294 | ("e231060", "VJgziofQQPCoisH"), |
295 | ("e223795", "pmcTCKox99NFsqp"), | 295 | ("e223795", "pmcTCKox99NFsqp"), |
296 | ("e223715", "1H5QuOYI1b2r9ET"), | ||
296 | ("bank", "P7oxDm30g1jeIId"), | 297 | ("bank", "P7oxDm30g1jeIId"), |
297 | ] | 298 | ] |
298 | .iter() | 299 | .iter() |