diff options
author | Yigit Sever | 2021-04-18 19:19:19 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-18 19:19:19 +0300 |
commit | a11fb97eecc4e9cbc494d0d8a2771848f6256e77 (patch) | |
tree | 261169fdfed9a625bb02a61d55658c61d0dd35f6 /src | |
parent | 177298de62546d0197d34f81b76fe7e45f97f661 (diff) | |
download | gradecoin-a11fb97eecc4e9cbc494d0d8a2771848f6256e77.tar.gz gradecoin-a11fb97eecc4e9cbc494d0d8a2771848f6256e77.tar.bz2 gradecoin-a11fb97eecc4e9cbc494d0d8a2771848f6256e77.zip |
New user and verbose JWT errors
Diffstat (limited to 'src')
-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() |