Permalink
Browse files

Merge pull request #30 from Shopify/fix_auth_response_lookup

Updates auth response credential lookup to string key
  • Loading branch information...
2 parents fea1754 + b6bae4c commit a7c8e1935243ff1a4a789c44afd6383a3d4e0c3e @jnormore jnormore committed Oct 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/shopify_app/templates/app/controllers/sessions_controller.rb
View
2 lib/generators/shopify_app/templates/app/controllers/sessions_controller.rb
@@ -9,7 +9,7 @@ def create
def show
if response = request.env['omniauth.auth']
- sess = ShopifyAPI::Session.new(params[:shop], response[:credentials][:token])
+ sess = ShopifyAPI::Session.new(params[:shop], response['credentials']['token'])
session[:shopify] = sess
flash[:notice] = "Logged in"
redirect_to return_address

0 comments on commit a7c8e19

Please sign in to comment.