cschiewek / devise_ldap_authenticatable

Devise Module for LDAP
MIT License
593 stars 359 forks source link

No ability to distinguish between invalid LDAP credentials and user not being in database #191

Closed acurley closed 9 years ago

acurley commented 9 years ago

Given the circumstance:

config.ldap_create_user = false

it is impossible to send to the view whether the user typed in the wrong credentials (i.e. got their password wrong) or that they are not included in the database. It seems to me that we would want to pass that information onto the user through the flash[:error] so that they know whether to retry their credentials or contact the system admin for inclusion in the user's table.