devise_ldap_authenticatable 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b851a53df509e6cf0d16292aa9192e06dfff3e7
4
- data.tar.gz: 532280a974b9cf4bf52d34ff5a57b49cd33e6304
3
+ metadata.gz: 7d77df0720d37da30b0d749734d7b66db617da4e
4
+ data.tar.gz: dcab785cce54f194a86d17a4a3b8a3a7ae101246
5
5
  SHA512:
6
- metadata.gz: dce1145454333fc039cab36e9c9c0c36178402fac1eff6f4d9bd552d3ac2eaa04fb8cf80e75750ed7c69e19fe93abe4a697288fb646f70481084114133c76725
7
- data.tar.gz: c5084e9417909665e9aecb7591dad2fbaa42543498ad179a9ca7ce8fc75315c3c278c36ce5a4ddf74c7f202f64d34089bc17d828bff451e896ca116d5aa1338d
6
+ metadata.gz: 226c4e0cbfc0b04e6e515fea9e1ab3ed27874eb1634823ed4c340688bf1de80aefe0ea1b289e81b4860b5f25af7242bf7840a74f44f9e3f0a822df012c1eca96
7
+ data.tar.gz: b7b86f6d414f9b14e082f1b4fa24a189a7cb1d153043bf96f8d7573fc904acc66a9218fd775fb6bd1d9d62a9076a03f292232705e4f31289acf2937527a3ae2a
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency('devise', '>= 3.0')
21
+ s.add_dependency('devise', '>= 3.4.1')
22
22
  s.add_dependency('net-ldap', '>= 0.3.1', '< 0.6.0')
23
23
 
24
24
  s.add_development_dependency('rake', '>= 0.9')
@@ -6,12 +6,14 @@ module Devise
6
6
 
7
7
  # Tests whether the returned resource exists in the database and the
8
8
  # credentials are valid. If the resource is in the database and the credentials
9
- # are valid, the user is authenticated. Otherwise failure messages are returned
9
+ # are valid, the user is authenticated. Otherwise failure messages are returned
10
10
  # indicating whether the resource is not found in the database or the credentials
11
11
  # are invalid.
12
12
  def authenticate!
13
13
  resource = mapping.to.find_for_ldap_authentication(authentication_hash.merge(password: password))
14
14
 
15
+ return fail(:invalid) unless resource
16
+
15
17
  if resource.persisted?
16
18
  if validate(resource) { resource.valid_ldap_authentication?(password) }
17
19
  remember_me(resource)
@@ -1,3 +1,3 @@
1
1
  module DeviseLdapAuthenticatable
2
- VERSION = "0.8.3".freeze
3
- end
2
+ VERSION = "0.8.4".freeze
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_ldap_authenticatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Curtis Schiewek
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-03-19 00:00:00.000000000 Z
13
+ date: 2015-04-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: devise
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '3.0'
21
+ version: 3.4.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: '3.0'
28
+ version: 3.4.1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: net-ldap
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -299,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  version: '0'
300
300
  requirements: []
301
301
  rubyforge_project:
302
- rubygems_version: 2.2.2
302
+ rubygems_version: 2.4.6
303
303
  signing_key:
304
304
  specification_version: 4
305
305
  summary: Devise extension to allow authentication via LDAP
@@ -374,4 +374,3 @@ test_files:
374
374
  - spec/support/factories.rb
375
375
  - spec/unit/connection_spec.rb
376
376
  - spec/unit/user_spec.rb
377
- has_rdoc: