Skip to content

Commit

Permalink
Stringify api_key
Browse files Browse the repository at this point in the history
Fixes spree#2492

Conflicts:
	api/app/controllers/spree/api/v1/base_controller.rb
  • Loading branch information
homakov authored and huoxito committed Feb 6, 2013
1 parent 700ba4f commit 0c88742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/controllers/spree/api/v1/base_controller.rb
Expand Up @@ -41,7 +41,7 @@ def check_for_api_key
end

def authenticate_user
unless @current_api_user = Spree.user_class.find_by_spree_api_key(api_key)
unless @current_api_user = Spree.user_class.find_by_spree_api_key(api_key.to_s)
render "spree/api/v1/errors/invalid_api_key", :status => 401 and return
end
end
Expand Down

0 comments on commit 0c88742

Please sign in to comment.