Shopify/shopify_app — pull request #17 by davidthomas5412 (2012-06-13 16:04:35+00:00)
Title: refactored the login_controller and a route

LoginController#authenticate is repetitive and has been refactored into index.

Something that is still troubling: If the user mistypes their store name then LoginController#index will redirect them to a bad domain. A potential solution is to send an http request and check for a response before redirecting the user there, but this adds complexity that is probably not worth it, ie. require net/http and some control in LoginController#index, so I will not be pursuing it further.

@rziehl, @davefp