Skip to content

Commit

Permalink
fix: IsEmailChulaStudent Unauthenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jun 30, 2024
1 parent c12c2a8 commit f17d8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/auth/auth.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (s *serviceImpl) VerifyGoogleLogin(_ context.Context, in *proto.VerifyGoogl
}

if !IsEmailChulaStudent(email) {
return nil, status.Error(codes.PermissionDenied, "Email is not a Chula student")
return nil, status.Error(codes.Unauthenticated, "Email is not a Chula student")
}

user, err := s.userSvc.FindByEmail(context.Background(), &userProto.FindByEmailRequest{Email: email})
Expand Down

0 comments on commit f17d8ca

Please sign in to comment.