> I think right not it can't be configured. The only way I see is to
override method `find_or_initialize_with_errors`
Thank you, Vasiliy.
> The reason why devise does this has to do with the attacker not being able
> to know if he got any of the parameters right, reducing the time of guessing
> by brute-force attacks/dictionary attacks to half. especially if he finds
> out one password and then he can get a way of getting all the users emails
> and try them all out. if you really want to implement this behaviour you
> need to be aware of this!
Thank you for pointing that out, Andreo. However, Devise alone doesn't
block against user enumeration even in paranoid mode
(
https://github.com/plataformatec/devise/wiki/How-To:-Using-paranoid-mode,-avoid-user-enumeration-on-registerable).
I wonder whether the core team would be open to changing the way
Devise handles the paranoid configuration so that if paranoid is set
to false, it will tell the user which was wrong, the password or the
email. Not telling the user provides no security enhancement (because
with paranoid set to false, password reset and other routes can be
used to enumerate email addresses), but provides a diminished user
experience. Anyone on the core team reading this and want to weigh in?
Thank You,
Daniel