refactor: remove useless dbg print

This commit is contained in:
Matthieu Bessat 2025-06-14 15:11:38 +02:00
parent 15020e9878
commit fdb868d10c
6 changed files with 0 additions and 7 deletions

View file

@ -55,7 +55,6 @@ pub async fn authorize_form(
query_params: Query<AuthorizationParams>
) -> impl IntoResponse {
let Query(authorization_params) = query_params;
dbg!(&authorization_params);
// 1. Verify the app details
let app = match app_state.config.applications
@ -173,7 +172,6 @@ pub async fn perform_authorize(
Extension(token_claims): Extension<UserTokenClaims>,
Form(authorize_form): Form<AuthorizationParams>
) -> impl IntoResponse {
dbg!(&authorize_form);
// 1. Get the app details
let app = match app_state.config.applications
.iter()

View file

@ -106,7 +106,6 @@ pub async fn enforce_jwt_auth_middleware(
match verify_token(&app_state.config, &app_state.secrets, jwt) {
Ok(val) => val,
Err(_e) => {
dbg!(_e);
return Err(
(StatusCode::UNAUTHORIZED, Html("Unauthorized: The provided JWT is invalid."))
);

View file

@ -32,7 +32,6 @@ pub async fn auth_middleware(
match verify_token(&app_state.config, &app_state.secrets, jwt) {
Ok(val) => val,
Err(_e) => {
dbg!(&_e);
// UserWebGUI: delete invalid JWT cookie
return Err(
(

View file

@ -28,7 +28,6 @@ impl TemplateRenderer {
{
Ok(content) => Html(content).into_response(),
Err(err) => {
dbg!(err);
error!("FATAL: Failed to render template {}", name);
(StatusCode::INTERNAL_SERVER_ERROR, "Internal server error").into_response()
}

View file

@ -22,6 +22,5 @@ pub fn parse_scope(scope_str: &str) -> Result<Vec<AuthorizationScope>> {
}
scopes.push(AuthorizationScope::from_str(part).context("Cannot parse space-delimited scope.")?);
}
dbg!(&scopes);
Ok(scopes)
}

View file

@ -35,7 +35,6 @@ pub async fn create_user(ctx: KernelContext, user: User) -> Result<(), CreateUse
if db_err.code().unwrap() == "2067" {
Err(CreateUserErr::HandleOrEmailNotUnique)
} else {
dbg!(&err);
Err(CreateUserErr::DatabaseErr(db_err.to_string()))
}
}