Permalink
Browse files

Updates auth response credential lookup to string key

  • Loading branch information...
1 parent fea1754 commit b6bae4c6633de04273f621e2790b4a5c96ffd579 @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
@@ -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 b6bae4c

Please sign in to comment.