Added autologin feature (disabled by default).

To enable this feature, go to administration settings and choose a duration for autologin.
When enabled, a checkbox on the login form lets users activate autologin.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@514 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-05-06 12:49:32 +00:00
parent 56513a8c66
commit 7eb6471559
16 changed files with 72 additions and 14 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class Setting < ActiveRecord::Base
end
def self.#{name}?
self[:#{name}].to_s == "1"
self[:#{name}].to_i > 0
end
def self.#{name}=(value)