Skip to content

Commit

Permalink
Merge pull request #1197 from datacite/remove-debug-log-statements
Browse files Browse the repository at this point in the history
remove debug log statements
  • Loading branch information
wendelfabianchinsamy authored Jun 19, 2024
2 parents 02406ef + c96867e commit cfb8781
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,14 @@ def authenticate_user_with_basic_auth!
def authenticate_user!
type, credentials = type_and_credentials_from_request_headers

if credentials.blank?
Rails.logger.error("current_user_check: credentials are blank")
end

return false if credentials.blank?

if (ENV["JWT_BLACKLISTED"] || "").split(",").include?(credentials)
Rails.logger.error("current_user_check: jwt failed verification")
raise JWT::VerificationError
end

@current_user = User.new(credentials, type: type)
Rails.logger.error("current_user: #{@current_user.inspect}")

fail CanCan::AuthorizationNotPerformed if @current_user.errors.present?

@current_user
Expand Down

0 comments on commit cfb8781

Please sign in to comment.