Skip to content

Commit

Permalink
Return 400 for banned users
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Jan 8, 2025
1 parent 4e5f166 commit 0c6254d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async fn github_callback(
// Check if user is banned
if auth::is_banned(&primary_email.email) {
warn!("User {} is banned!", primary_email.email);
return Err(StatusCode::INTERNAL_SERVER_ERROR);
return Err(StatusCode::BAD_REQUEST);
}

info!("Authing user with email: {}", primary_email.email);
Expand Down

0 comments on commit 0c6254d

Please sign in to comment.