Skip to content

Commit

Permalink
hanlde empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Mar 27, 2020
1 parent cfc9d3e commit 8832ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def authenticate_user_with_basic_auth!
def authenticate_user!
type, credentials = type_and_credentials_from_request_headers
return false if credentials.blank?
raise JWT::VerificationError if ENV["JWT_BLACKLISTED"].split(",").include?(credentials)
raise JWT::VerificationError if (ENV["JWT_BLACKLISTED"] || "").split(",").include?(credentials)

@current_user = User.new(credentials, type: type)
fail CanCan::AuthorizationNotPerformed if @current_user.errors.present?
Expand Down

0 comments on commit 8832ce1

Please sign in to comment.