Skip to content

Commit

Permalink
remove debug log statements
Browse files Browse the repository at this point in the history
wendelfabianchinsamy committed Jun 19, 2024
1 parent 02406ef commit c96867e
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
@@ -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

0 comments on commit c96867e

Please sign in to comment.