about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-08-25 19:52:55 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-08-25 19:52:55 +0200
commit44e57f64dd8b00900c31d7fd56fda94f4e69e986 (patch)
tree346179141ed8710b4593a36f0b6524589ab884cd /config/initializers
parentf5e1127894e74f21a774569bf6afc1e87a84fa2f (diff)
Improving statuses, adding a composer drawer, which doesn't work yet
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/doorkeeper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb
index f36445942..cf320c557 100644
--- a/config/initializers/doorkeeper.rb
+++ b/config/initializers/doorkeeper.rb
@@ -4,7 +4,7 @@ Doorkeeper.configure do
 
   # This block will be called to check whether the resource owner is authenticated or not.
   resource_owner_authenticator do
-    current_user || redirect_to(new_user_session_url)
+    current_user || warden.authenticate!(scope: :user)
   end
 
   resource_owner_from_credentials do |routes|