cschiewek / devise_ldap_authenticatable

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

Distinguish between invalid credentials and exclusion from database #192

Closed acurley closed 9 years ago

acurley commented 9 years ago

This PR is intended to provide feedback via failure messages about the reason their login has failed. With this PR request a user will be able to distinguish whether they have provided invalid credentials or do not exist in the application's database. This functionality is especially useful when Devise.ldap_create_user = false. Otherwise the user may be confused as to why her login is being rejected. Fixes #191