about summary refs log tree commit diff
path: root/app/controllers/auth
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/auth')
-rw-r--r--app/controllers/auth/sessions_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/auth/sessions_controller.rb b/app/controllers/auth/sessions_controller.rb
index 42b1d4ead..fe0adc9bb 100644
--- a/app/controllers/auth/sessions_controller.rb
+++ b/app/controllers/auth/sessions_controller.rb
@@ -1,3 +1,11 @@
 class Auth::SessionsController < Devise::SessionsController
+  include Devise::Controllers::Rememberable
+
   layout 'auth'
+
+  def create
+    super do |resource|
+      remember_me(resource)
+    end
+  end
 end