1
0
Fork 0

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:
Andrew Tomaka 2014-01-26 01:41:02 -08:00
commit 31411d22ae
2 changed files with 3 additions and 3 deletions

View file

@ -14,5 +14,5 @@ Gem::Specification.new do |s|
s.homepage = 'http://www.github.com/atomaka/devise-kerberos-authenticatable' s.homepage = 'http://www.github.com/atomaka/devise-kerberos-authenticatable'
s.add_dependency 'timfel-krb5-auth', '~> 0.8' s.add_dependency 'timfel-krb5-auth', '~> 0.8'
s.add_dependency 'devise', '~> 2.2.3' s.add_dependency 'devise', '~> 3.1.1'
end end

View file

@ -12,10 +12,10 @@ module Devise
begin begin
krb5.get_init_creds_password(username, password) krb5.get_init_creds_password(username, password)
rescue Krb5Auth::Krb5::Exception rescue Krb5Auth::Krb5::Exception
false return false
end end
true return true
end end
end end
end end