cschiewek / devise_ldap_authenticatable

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

Error when authenticating #163

Open frankapimenta opened 10 years ago

frankapimenta commented 10 years ago

NoMethodError (undefined method to' for nil:NilClass): devise_ldap_authenticatable (0.8.1) lib/devise_ldap_authenticatable/model.rb:21:inlogin_with' devise_ldap_authenticatable (0.8.1) lib/devise_ldap_authenticatable/model.rb:48:in `valid_ldap_authentication?'

is it an issue or something is missing? I follow the tutorial thourougly

i'm using this gem within an engine. It fails when asking for Devise.mappings..is there a special configuration for it?

abortu commented 9 years ago

I also have this issue, same error. I'm also using it within an engine.

frankapimenta commented 9 years ago

@abortu this was fixes with pull request (https://github.com/cschiewek/devise_ldap_authenticatable/pull/164)