Skip to content

Commit

Permalink
fix: logged to stderr on decode failure
Browse files Browse the repository at this point in the history
  • Loading branch information
hn275 committed Apr 11, 2023
1 parent 4094932 commit d280cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub async fn register(
new_credentials: web::Json<jwt::UserCredentials>,
) -> ApiResult<(), RegistrationError> {
let new_user = jwt::decode_new_user(new_credentials).map_err(|err| {
error!("{}", err);
error!("{err}");
return Failure::Forbidden("Invalid credential token.");
})?;

Expand Down

0 comments on commit d280cbe

Please sign in to comment.