summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/token.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/token.rb b/app/models/token.rb
index e34d6b65e..1de251e40 100644
--- a/app/models/token.rb
+++ b/app/models/token.rb
@@ -37,10 +37,10 @@ class Token < ActiveRecord::Base
end
add_action :api, max_instances: 1, validity_time: nil
- add_action :autologin, max_instances: 10, validity_time: Proc.new { Setting.autologin.to_i.days }
+ add_action :autologin, max_instances: 10, validity_time: Proc.new {Setting.autologin.to_i.days}
add_action :feeds, max_instances: 1, validity_time: nil
- add_action :recovery, max_instances: 1, validity_time: Proc.new { Token.validity_time }
- add_action :register, max_instances: 1, validity_time: Proc.new { Token.validity_time }
+ add_action :recovery, max_instances: 1, validity_time: Proc.new {Token.validity_time}
+ add_action :register, max_instances: 1, validity_time: Proc.new {Token.validity_time}
add_action :session, max_instances: 10, validity_time: nil
add_action :twofa_backup_code, max_instances: 10, validity_time: nil