omniauth-multipassword 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ module Omniauth
2
2
  module Multipassword
3
3
  module VERSION
4
4
  MAJOR = 0
5
- MINOR = 2
5
+ MINOR = 3
6
6
  PATCH = 0
7
7
  STAGE = nil
8
8
 
@@ -52,7 +52,9 @@ module OmniAuth
52
52
  begin
53
53
  @authenticator = auth[0].new @app, *auth[1]
54
54
  @authenticator.init_authenticator(@request, @env, username)
55
- return true if @authenticator.authenticate(username, password)
55
+ if @authenticator.authenticate(username, password)
56
+ return true
57
+ end
56
58
  rescue Error => e
57
59
  OmniAuth.logger.warn "OmniAuth ERR >>> " + e
58
60
  end
@@ -61,6 +63,11 @@ module OmniAuth
61
63
  false
62
64
  end
63
65
 
66
+ def name
67
+ return @authenticator.name if @authenticator
68
+ super
69
+ end
70
+
64
71
  info do
65
72
  info = @authenticator.info if @authenticator
66
73
  info = {} unless info.is_a?(Hash)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-multipassword
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
16
- requirement: &18337760 !ruby/object:Gem::Requirement
16
+ requirement: &11704160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18337760
24
+ version_requirements: *11704160
25
25
  description: A OmniAuth strategy to authenticate using different passwort strategies.
26
26
  email:
27
27
  - jan.graichen@altimos.de