From 066c6e87714c629f598ecc977e2a784ffb0e7e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 28 Mar 2010 12:52:05 +0200 Subject: [PATCH] Do not force halt on authenticatable. This allows other strategies (like devise_imapable or even devise_facebook_connectable) to hook into sessions controller as well. Those strategies should follow the same convention, allowing them to be cascated. --- lib/devise/strategies/authenticatable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devise/strategies/authenticatable.rb b/lib/devise/strategies/authenticatable.rb index 83285e12..6a0857b7 100644 --- a/lib/devise/strategies/authenticatable.rb +++ b/lib/devise/strategies/authenticatable.rb @@ -16,7 +16,7 @@ module Devise if resource = mapping.to.authenticate(params[scope]) success!(resource) else - fail!(:invalid) + fail(:invalid) end end