2012-02-24 50 views

回答

5
  1. 添加:lockable策略,模型
  2. 添加config.unlock_strategy = :time
  3. 添加config.lock_strategy = :failed_attempts
  4. 添加config.maximum_attempts = 10
  5. 添加config.unlock_in = 10.minutesinitializers/devise.rb
相關問題