cakephp/cakephp — pull request #585 by shama (2012-03-28 05:59:20+00:00)
Title: Default to loginRedirect, if set, on authError in AuthComponent

Implements #2390: http://cakephp.lighthouseapp.com/projects/42648/tickets/2390-auth-component-should-not-redirect-to-index-if-loginredirect-is-set

Based on the patch written by @dereuromark