devise_pam_authenticatable2 8.0.2 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/VERSION +1 -1
- data/devise_pam_authenticatable2.gemspec +3 -3
- data/lib/devise_pam_authenticatable/model.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0297b55e47f45fb7302100ce6390077249242f36f2c4eb54b447692983f3522d'
|
4
|
+
data.tar.gz: 40c3561ea94204ed15835569504db428561fc6dab604e1ac30d3172876769426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc528bfb4d86c504ac01dca913f18d8759de146e98e322706d55446edd693b19b57f4752608d80c397ac7fee80c56956715fc8a6e476e7a38567484039e1909d
|
7
|
+
data.tar.gz: e198f7757b46b05ee8ab7c278a8cf7ff8230a0d89320d04dddc02fd5dc5fe3083fc1f63888175fafe935526123526da57fd56a687098bfae71bb83b10e231aaf
|
data/README.md
CHANGED
@@ -33,6 +33,8 @@ Some removed code may can clash in earlier versions.
|
|
33
33
|
|
34
34
|
Version 5-8 change method names. Check if everything is correct. Sorry for the quick release cycle.
|
35
35
|
|
36
|
+
In version 9 is_pam_account? is changed to pam_managed_user? because some linters hate the former name.
|
37
|
+
|
36
38
|
Setup
|
37
39
|
-----
|
38
40
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
9.0.0
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: devise_pam_authenticatable2
|
5
|
+
# stub: devise_pam_authenticatable2 9.0.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "devise_pam_authenticatable2".freeze
|
9
|
-
s.version = "
|
9
|
+
s.version = "9.0.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["James Wilson".freeze, "Alexander Kaftan".freeze]
|
14
|
-
s.date = "2018-
|
14
|
+
s.date = "2018-03-05"
|
15
15
|
s.description = "For authenticating against PAM (Pluggable Authentication Modules)".freeze
|
16
16
|
s.email = "devkral@web.de".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -26,7 +26,7 @@ module Devise
|
|
26
26
|
email.slice(0, pos)
|
27
27
|
end
|
28
28
|
|
29
|
-
def
|
29
|
+
def pam_managed_user?
|
30
30
|
return false unless pam_get_name
|
31
31
|
Rpam2.account(find_pam_service, pam_get_name)
|
32
32
|
end
|
@@ -34,7 +34,7 @@ module Devise
|
|
34
34
|
def pam_conflict?
|
35
35
|
# detect a conflict
|
36
36
|
# use blank password as discriminator between traditional login and pam login
|
37
|
-
respond_to?('encrypted_password') && encrypted_password.present? &&
|
37
|
+
respond_to?('encrypted_password') && encrypted_password.present? && pam_managed_user?
|
38
38
|
end
|
39
39
|
|
40
40
|
def pam_conflict(_attributes)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_pam_authenticatable2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 9.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Wilson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise
|