decidim-direct_verifications 0.21 → 0.22
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a3a36032cc453d0d386579125ace610fbc73e85a975196b56ae84c3f10a2296
|
4
|
+
data.tar.gz: d20c11a81153e2c9fe79b0663d5b9cd7f077133714d8cf25a872ee1f70ca6741
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3201103a89ca52e19fbd493018e45727d81d3b7d626eca0a5735253bc4ee21b5fc3260038cca70c405aed30f4556c807ae35b3b1ec00bc6157acc3f0c16cc33
|
7
|
+
data.tar.gz: 170a4e48d8ecadd8abc262626669ed9b8820d85804a0a48350c1ea2a2dc7f2de4a87f6833f71ff23fe1b880ba817b81f8f4823059824bfcce9703d9b45720631
|
@@ -18,7 +18,7 @@ module Decidim
|
|
18
18
|
enforce_permission_to :create, :authorization
|
19
19
|
|
20
20
|
@userslist = params[:userlist]
|
21
|
-
@processor = UserProcessor.new(current_organization, current_user)
|
21
|
+
@processor = UserProcessor.new(current_organization, current_user, session)
|
22
22
|
@processor.emails = extract_emails_to_hash @userslist
|
23
23
|
@processor.authorization_handler = current_authorization_handler
|
24
24
|
@stats = UserStats.new(current_organization)
|
@@ -3,16 +3,17 @@
|
|
3
3
|
module Decidim
|
4
4
|
module DirectVerifications
|
5
5
|
class UserProcessor
|
6
|
-
def initialize(organization, current_user)
|
6
|
+
def initialize(organization, current_user, session)
|
7
7
|
@organization = organization
|
8
8
|
@current_user = current_user
|
9
9
|
@authorization_handler = :direct_verifications
|
10
10
|
@errors = { registered: [], authorized: [], revoked: [] }
|
11
11
|
@processed = { registered: [], authorized: [], revoked: [] }
|
12
12
|
@emails = {}
|
13
|
+
@session = session
|
13
14
|
end
|
14
15
|
|
15
|
-
attr_reader :organization, :current_user, :errors, :processed, :emails
|
16
|
+
attr_reader :organization, :current_user, :session, :errors, :processed, :emails
|
16
17
|
attr_accessor :authorization_handler
|
17
18
|
|
18
19
|
def emails=(email_list)
|
@@ -46,7 +47,7 @@ module Decidim
|
|
46
47
|
auth = authorization(u)
|
47
48
|
next unless !auth.granted? || auth.expired?
|
48
49
|
|
49
|
-
Verification::ConfirmUserAuthorization.call(auth, authorize_form(u)) do
|
50
|
+
Verification::ConfirmUserAuthorization.call(auth, authorize_form(u), session) do
|
50
51
|
on(:ok) do
|
51
52
|
add_processed :authorized, email
|
52
53
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
module Decidim
|
4
4
|
# This holds the decidim-direct_verifications version.
|
5
5
|
module DirectVerifications
|
6
|
-
VERSION = "0.
|
7
|
-
DECIDIM_VERSION = "0.
|
8
|
-
MIN_DECIDIM_VERSION = "
|
6
|
+
VERSION = "0.22"
|
7
|
+
DECIDIM_VERSION = "0.22"
|
8
|
+
MIN_DECIDIM_VERSION = ">= 0.22.0"
|
9
9
|
end
|
10
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-direct_verifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.22'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Vergés
|
@@ -14,30 +14,30 @@ dependencies:
|
|
14
14
|
name: decidim-admin
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.22.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.22.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.22.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.22.0
|
41
41
|
description: Provides a verification method that also registers users directly in
|
42
42
|
the platform. Can be used to mass verificate user with other verification handlers
|
43
43
|
email:
|