diff --git a/src/callers/login.rs b/src/callers/login.rs index 65dc6ca..f84a1ac 100644 --- a/src/callers/login.rs +++ b/src/callers/login.rs @@ -320,9 +320,11 @@ pub mod endpoint { if !payload.is_valid() { response.message = "Invalid request".to_string(); + println!("Invalid request"); return (axum::http::StatusCode::BAD_REQUEST, axum::Json(response)); } + println!("Get User"); match repo::user::get(&pool, &payload.username).await { Ok(user) => { if hashing::verify_password(&payload.current_password, user.password.clone())