diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-28 00:06:52 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-28 00:06:52 +0200 |
commit | ff2cbc07530d87132af09900b4d0c9ada9d3e716 (patch) | |
tree | a821b80cd89de35c6cc99b256b04975723c4e4dd /app/controllers | |
parent | c38ad208c361cc77e2fa305a0e929f35363c0fcd (diff) |
Remember me enabled by default
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/auth/sessions_controller.rb | 8 |
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 |