Merge pull request #1 from paulrw/master
Bumped devise dependency version and fixed kerberos adapter returning true for invalid credentials
This commit is contained in:
commit
31411d22ae
2 changed files with 3 additions and 3 deletions
|
@ -14,5 +14,5 @@ Gem::Specification.new do |s|
|
|||
s.homepage = 'http://www.github.com/atomaka/devise-kerberos-authenticatable'
|
||||
|
||||
s.add_dependency 'timfel-krb5-auth', '~> 0.8'
|
||||
s.add_dependency 'devise', '~> 2.2.3'
|
||||
s.add_dependency 'devise', '~> 3.1.1'
|
||||
end
|
||||
|
|
|
@ -12,10 +12,10 @@ module Devise
|
|||
begin
|
||||
krb5.get_init_creds_password(username, password)
|
||||
rescue Krb5Auth::Krb5::Exception
|
||||
false
|
||||
return false
|
||||
end
|
||||
|
||||
true
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue