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