浏览代码

Avoid user enumeration with devise paranoid mode (#1527)

master
Yann GUERN 7 年前
committed by Eugen
父节点
当前提交
a85d4473aa
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      config/initializers/devise.rb

+ 2
- 1
config/initializers/devise.rb 查看文件

@@ -74,7 +74,8 @@ Devise.setup do |config|
# It will change confirmation, password recovery and other workflows
# to behave the same regardless if the e-mail provided was right or wrong.
# Does not affect registerable.
# config.paranoid = true
# See : https://github.com/plataformatec/devise/wiki/How-To:-Using-paranoid-mode,-avoid-user-enumeration-on-registerable
config.paranoid = true

# By default Devise will store the user in session. You can skip storage for
# particular strategies by setting this option.


正在加载...
取消
保存