Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Devise::LdapAdapter.valid_login? method #51

Merged
merged 7 commits into from
Oct 5, 2011
Merged

Added Devise::LdapAdapter.valid_login? method #51

merged 7 commits into from
Oct 5, 2011

Conversation

stevenyxu
Copy link
Collaborator

The method determines whether a login is found in an LDAP search. See new tests for sample usage:

::Devise::LdapAdapter.valid_login?('example.user@test.com') #=> true
::Devise::LdapAdapter.valid_login?('barneystinson') #=> false

I didn't mean to include the updated schema.rb, but I accidentally mangled my master branch. The tests still all pass with the new schema and reflects Devise 1.4's new way of using (i.e., not) the salt. The exception is the known issue in #49, which I'm not going to attempt to fix because I can't figure out the original purpose behind the missing file.

If you want me to figure out how to only pull request the two files and leave out schema.rb, I can; just let me know, but I haven't been successful so far.

@stevenyxu
Copy link
Collaborator Author

And also, I'm much obliged for the quick merges of my other two requests. I think they're valuable changes that don't break compatibility at least according to the tests. Keeps me from having to actively maintain my fork. Thanks!

Steven Xu added 2 commits October 5, 2011 15:03
Conflicts:
	test/rails_app/test/unit/user_test.rb
cschiewek added a commit that referenced this pull request Oct 5, 2011
Added Devise::LdapAdapter.valid_login? method
@cschiewek cschiewek merged commit ea45311 into cschiewek:master Oct 5, 2011
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants