Commit ae532542 authored by Dennis Schubert's avatar Dennis Schubert

Really remove Devises timeoutable...

... and force it to really remember the session by a hidden field.
parent 70b0c9e2
......@@ -18,8 +18,8 @@ class User < ActiveRecord::Base
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable,
:timeoutable, :token_authenticatable, :lockable,
:lock_strategy => :none, :unlock_strategy => :none
:token_authenticatable, :lockable, :lock_strategy => :none,
:unlock_strategy => :none
before_validation :strip_and_downcase_username
before_validation :set_current_language, :on => :create
......
......@@ -30,6 +30,7 @@
</div>
</fieldset>
<%= f.hidden_field :remember_me, :value => 1 %>
<%= f.submit t('devise.sessions.new.sign_in'), :class => "new-btn" %>
<% end %>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment