From a11fb97eecc4e9cbc494d0d8a2771848f6256e77 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 18 Apr 2021 19:19:19 +0300 Subject: New user and verbose JWT errors --- src/handlers.rs | 2 +- src/schema.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 { warn!("AN UNSPECIFIED ERROR: {:?}", err); - return Err(String::from("Unspecified error")); + return Err(format!("JWT Error: {}", err)); } }, }; 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! { ("e223786", "UxI6czykJfp9T9N"), ("e231060", "VJgziofQQPCoisH"), ("e223795", "pmcTCKox99NFsqp"), + ("e223715", "1H5QuOYI1b2r9ET"), ("bank", "P7oxDm30g1jeIId"), ] .iter() -- cgit v1.2.3-70-g09d2