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

View file

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

View file

@ -28,7 +28,6 @@ impl TemplateRenderer {
{ {
Ok(content) => Html(content).into_response(), Ok(content) => Html(content).into_response(),
Err(err) => { Err(err) => {
dbg!(err);
error!("FATAL: Failed to render template {}", name); error!("FATAL: Failed to render template {}", name);
(StatusCode::INTERNAL_SERVER_ERROR, "Internal server error").into_response() (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.")?); scopes.push(AuthorizationScope::from_str(part).context("Cannot parse space-delimited scope.")?);
} }
dbg!(&scopes);
Ok(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" { if db_err.code().unwrap() == "2067" {
Err(CreateUserErr::HandleOrEmailNotUnique) Err(CreateUserErr::HandleOrEmailNotUnique)
} else { } else {
dbg!(&err);
Err(CreateUserErr::DatabaseErr(db_err.to_string())) Err(CreateUserErr::DatabaseErr(db_err.to_string()))
} }
} }