refactor: remove useless dbg print
This commit is contained in:
parent
15020e9878
commit
fdb868d10c
6 changed files with 0 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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."))
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
(
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue