Procházet zdrojové kódy

Avoid user enumeration with devise paranoid mode (#1527)

master
Yann GUERN před 7 roky
committed by Eugen
rodič
revize
a85d4473aa
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      config/initializers/devise.rb

+ 2
- 1
config/initializers/devise.rb Zobrazit soubor

@@ -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.


Načítá se…
Zrušit
Uložit