decidim-direct_verifications 0.22 → 0.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/decidim/direct_verifications/verification/admin/direct_verifications_controller.rb +2 -2
- data/app/views/decidim/direct_verifications/verification/admin/direct_verifications/index.html.erb +2 -2
- data/lib/decidim/direct_verifications/tests/verification_controller_examples.rb +2 -2
- data/lib/decidim/direct_verifications/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 860fec657e68dab8325cde196bbfaa66059ede6b76414bb250a549d5639ebe6e
|
4
|
+
data.tar.gz: f40a1f9bb946c0254c518cba3dd05a1e1764bd23729270e80554076cd07ffc12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87f25e203fe473612d2b53ae4986a5452d2096f12543d00eba10c1a8ba7d04c09471cbc9a15eed4916281ea07186152c61d630d0e40320c27d63cde699b6b7a0
|
7
|
+
data.tar.gz: b3c34eccfd75f9849c5866fc402969fc7c0e2c99313983bd302fe025254e299356790697ed34ab9f96ef8c4cace2c335dd3bb6f4dbb412f9073c4316c1554d10
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Decidim::DirectVerifications
|
2
2
|
|
3
|
-
![
|
3
|
+
![Test](https://github.com/Platoniq/decidim-verifications-direct_verifications/workflows/Test/badge.svg)
|
4
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/2195deb4de6c6354a6bc/maintainability)](https://codeclimate.com/github/Platoniq/decidim-verifications-direct_verifications/maintainability)
|
5
5
|
[![codecov](https://codecov.io/gh/Platoniq/decidim-verifications-direct_verifications/branch/master/graph/badge.svg?token=FR1zkV71S2)](https://codecov.io/gh/Platoniq/decidim-verifications-direct_verifications)
|
6
6
|
|
@@ -17,7 +17,7 @@ module Decidim
|
|
17
17
|
def create
|
18
18
|
enforce_permission_to :create, :authorization
|
19
19
|
|
20
|
-
@userslist = params[:
|
20
|
+
@userslist = params[:userslist]
|
21
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
|
@@ -64,7 +64,7 @@ module Decidim
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def show_users_info
|
67
|
-
return if params[:authorize]
|
67
|
+
return if params[:authorize].in? %w(in out)
|
68
68
|
|
69
69
|
@stats.emails = @processor.emails.keys
|
70
70
|
flash.now[:info] = t(".info", handler: t("#{@processor.authorization_handler}.name", scope: "decidim.authorization_handlers"),
|
data/app/views/decidim/direct_verifications/verification/admin/direct_verifications/index.html.erb
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
<div class="card-section">
|
9
9
|
<p><%= t("decidim.direct_verifications.verification.admin.new.info") %></p>
|
10
10
|
<%= form_tag direct_verifications_path, multipart: true, class: "form" do %>
|
11
|
-
<%= label_tag :
|
12
|
-
<%= text_area_tag :
|
11
|
+
<%= label_tag :userslist, t("admin.new.textarea", scope: "decidim.direct_verifications.verification") %>
|
12
|
+
<%= text_area_tag :userslist, @userslist, rows: 10 %>
|
13
13
|
<label>
|
14
14
|
<%= check_box_tag :register %>
|
15
15
|
<%= t("admin.new.register", scope: "decidim.direct_verifications.verification") %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
shared_examples_for "checking users" do |params|
|
4
4
|
context "when check without mails" do
|
5
5
|
it "renders the index with info message" do
|
6
|
-
params[:
|
6
|
+
params[:userslist] = ""
|
7
7
|
perform_enqueued_jobs do
|
8
8
|
post :create, params: params
|
9
9
|
expect(flash[:info]).not_to be_empty
|
@@ -15,7 +15,7 @@ shared_examples_for "checking users" do |params|
|
|
15
15
|
|
16
16
|
context "when check with mails" do
|
17
17
|
it "renders the index with info message" do
|
18
|
-
params[:
|
18
|
+
params[:userslist] = "mail@example.com"
|
19
19
|
perform_enqueued_jobs do
|
20
20
|
post :create, params: params
|
21
21
|
expect(flash[:info]).not_to be_empty
|