decidim-verifications 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/decidim/verifications/sms/authorizations_controller.rb +7 -15
- data/config/locales/ar-SA.yml +169 -0
- data/config/locales/ca.yml +2 -2
- data/config/locales/cs-CZ.yml +190 -0
- data/config/locales/es-MX.yml +188 -0
- data/config/locales/es-PY.yml +1 -1
- data/config/locales/es.yml +2 -2
- data/config/locales/fi.yml +2 -2
- data/config/locales/hu.yml +7 -7
- data/config/locales/ru.yml +3 -0
- data/config/locales/uk.yml +3 -0
- data/lib/decidim/verifications/default_action_authorizer.rb +8 -2
- data/lib/decidim/verifications/version.rb +1 -1
- metadata +11 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a24de61b6997b0a6f0572d1b2904d10304a5a9c9c720a9abc0a17a994092607
|
4
|
+
data.tar.gz: 9d48822d0059b387debf6cdb5c060860f1ab2b2eadcc47ed2686926976a05822
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5106592bfdf1f036da38937c343fac0dbeaa32fe4d7adc0006e6501ab23a9741c9de6b2ed54b69eb0b3032ed3a0b8fa83766d5a9df360bc20ef94336cc39ff91
|
7
|
+
data.tar.gz: 0d6292f8b8b83ea6e652a55120d3209205b4e0e741aed341533eefbccead471fbf57198999954e851ec7db624e0368b25beeaedcfffed6279645fa28e6c7f69a
|
@@ -6,20 +6,18 @@ module Decidim
|
|
6
6
|
class AuthorizationsController < ApplicationController
|
7
7
|
helper_method :authorization
|
8
8
|
|
9
|
-
before_action :load_authorization
|
10
|
-
|
11
9
|
def new
|
12
|
-
enforce_permission_to :create, :authorization, authorization:
|
10
|
+
enforce_permission_to :create, :authorization, authorization: authorization
|
13
11
|
|
14
12
|
@form = MobilePhoneForm.new
|
15
13
|
end
|
16
14
|
|
17
15
|
def create
|
18
|
-
enforce_permission_to :create, :authorization, authorization:
|
16
|
+
enforce_permission_to :create, :authorization, authorization: authorization
|
19
17
|
|
20
18
|
@form = MobilePhoneForm.from_params(params.merge(user: current_user))
|
21
19
|
|
22
|
-
PerformAuthorizationStep.call(
|
20
|
+
PerformAuthorizationStep.call(authorization, @form) do
|
23
21
|
on(:ok) do
|
24
22
|
flash[:notice] = t("authorizations.create.success", scope: "decidim.verifications.sms")
|
25
23
|
authorization_method = Decidim::Verifications::Adapter.from_element(authorization.name)
|
@@ -33,17 +31,17 @@ module Decidim
|
|
33
31
|
end
|
34
32
|
|
35
33
|
def edit
|
36
|
-
enforce_permission_to :update, :authorization, authorization:
|
34
|
+
enforce_permission_to :update, :authorization, authorization: authorization
|
37
35
|
|
38
36
|
@form = ConfirmationForm.from_params(params)
|
39
37
|
end
|
40
38
|
|
41
39
|
def update
|
42
|
-
enforce_permission_to :update, :authorization, authorization:
|
40
|
+
enforce_permission_to :update, :authorization, authorization: authorization
|
43
41
|
|
44
42
|
@form = ConfirmationForm.from_params(params)
|
45
43
|
|
46
|
-
ConfirmUserAuthorization.call(
|
44
|
+
ConfirmUserAuthorization.call(authorization, @form) do
|
47
45
|
on(:ok) do
|
48
46
|
flash[:notice] = t("authorizations.update.success", scope: "decidim.verifications.sms")
|
49
47
|
redirect_to decidim_verifications.authorizations_path
|
@@ -58,14 +56,8 @@ module Decidim
|
|
58
56
|
|
59
57
|
private
|
60
58
|
|
61
|
-
# rubocop:disable Naming/MemoizedInstanceVariableName
|
62
59
|
def authorization
|
63
|
-
@
|
64
|
-
end
|
65
|
-
# rubocop:enable Naming/MemoizedInstanceVariableName
|
66
|
-
|
67
|
-
def load_authorization
|
68
|
-
@authorization = Decidim::Authorization.find_or_initialize_by(
|
60
|
+
@authorization ||= Decidim::Authorization.find_or_initialize_by(
|
69
61
|
user: current_user,
|
70
62
|
name: "sms"
|
71
63
|
)
|
@@ -0,0 +1,169 @@
|
|
1
|
+
ar:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
config:
|
5
|
+
available_methods: الطرق المتاحة
|
6
|
+
offline: غير متصل على الانترنت
|
7
|
+
offline_explanation: تعليمات للتحقق حاليا
|
8
|
+
online: عبر الانترنت
|
9
|
+
id_document_information:
|
10
|
+
document_number: رقم الوثيقة (مع خطاب)
|
11
|
+
document_type: نوع المستند
|
12
|
+
id_document_upload:
|
13
|
+
document_number: رقم الوثيقة (مع خطاب)
|
14
|
+
document_type: نوع المستند الخاص بك
|
15
|
+
verification_attachment: نسخة ممسوحة ضوئيًا من المستند
|
16
|
+
offline_confirmation:
|
17
|
+
email: البريد الإلكتروني للمستخدم
|
18
|
+
postal_letter_address:
|
19
|
+
full_address: العنوان الكامل
|
20
|
+
postal_letter_confirmation:
|
21
|
+
verification_code: شيفرة التأكيد
|
22
|
+
postal_letter_postage:
|
23
|
+
full_address: العنوان الكامل
|
24
|
+
verification_code: شيفرة التأكيد
|
25
|
+
decidim:
|
26
|
+
admin:
|
27
|
+
menu:
|
28
|
+
authorization_workflows: التحقق
|
29
|
+
admin_log:
|
30
|
+
organization:
|
31
|
+
update_id_documents_config: "%{user_name} بتحديث تكوين التحقق من وثائق الهوية"
|
32
|
+
user:
|
33
|
+
grant_id_documents_offline_verification: "%{user_name} التحقق من %{resource_name} باستخدام التحقق من مستندات الهوية دون اتصال"
|
34
|
+
authorization_handlers:
|
35
|
+
admin:
|
36
|
+
id_documents:
|
37
|
+
help:
|
38
|
+
- يقوم المستخدمون بملء معلومات هويتهم وتحميل نسخة من وثيقتهم.
|
39
|
+
- يمكنك ملء المعلومات الموجودة في الصورة التي تم تحميلها.
|
40
|
+
- يجب أن تتطابق المعلومات مع كل ما قام المستخدم بملئه.
|
41
|
+
- إذا لم تتمكن من رؤية المعلومات بوضوح أو لم تتمكن من التحقق منها ، فيمكنك رفض الطلب وسيكون المستخدم قادرًا على إصلاحها.
|
42
|
+
postal_letter:
|
43
|
+
help:
|
44
|
+
- Users request a verification code to be sent to their address.
|
45
|
+
- يمكنك إرسال الرسالة إلى عنوانهم مع رمز التحقق.
|
46
|
+
- يمكنك وضع علامة على الرسالة كما تم إرسالها.
|
47
|
+
- Once you mark the letter as sent, the user will be able to introduce the code and get verified.
|
48
|
+
direct: مباشرة
|
49
|
+
help: مساعدة
|
50
|
+
id_documents:
|
51
|
+
explanation: قم بتحميل وثائق هويتك حتى نتمكن من التحقق من هويتك
|
52
|
+
name: وثائق الهوية
|
53
|
+
multistep: متعدد الخطوة
|
54
|
+
name: اسم
|
55
|
+
postal_letter:
|
56
|
+
explanation: سنرسل لك خطابًا بريديًا مع رمز يتعين عليك إدخاله حتى نتمكن من التحقق من عنوانك
|
57
|
+
name: رمز عن طريق البريد
|
58
|
+
verifications:
|
59
|
+
authorizations:
|
60
|
+
create:
|
61
|
+
success: لقد تم التفويض بنجاح.
|
62
|
+
unconfirmed: تحتاج إلى تأكيد بريدك الإلكتروني من أجل تفويض نفسك.
|
63
|
+
first_login:
|
64
|
+
actions:
|
65
|
+
another_dummy_authorization_handler: تحقق من مثال آخر على معالج التخويل
|
66
|
+
dummy_authorization_handler: تحقق من مقابل معالج التخويل
|
67
|
+
dummy_authorization_workflow: تحقق من سير عمل تخويل المثال
|
68
|
+
id_documents: الحصول على التحقق عن طريق تحميل وثيقة الهوية الخاصة بك
|
69
|
+
postal_letter: الحصول على التحقق من خلال تلقي رمز التحقق عبر البريد العادي
|
70
|
+
title: تحقق من هويتك
|
71
|
+
verify_with_these_options: 'هذه هي الخيارات المتاحة للتحقق من هويتك:'
|
72
|
+
new:
|
73
|
+
authorize: إرسال
|
74
|
+
authorize_with: تحقق مع %{authorizer}
|
75
|
+
skip_verification: يمكنك تخطي هذا الآن و %{link}
|
76
|
+
start_exploring: البدء في استكشاف
|
77
|
+
id_documents:
|
78
|
+
admin:
|
79
|
+
config:
|
80
|
+
edit:
|
81
|
+
title: تكوين وثائق الهوية
|
82
|
+
update: تحديث
|
83
|
+
update:
|
84
|
+
success: تم تحديث التكوين بنجاح
|
85
|
+
confirmations:
|
86
|
+
new:
|
87
|
+
introduce_user_data: إدخال البيانات في الصورة
|
88
|
+
reject: رفض
|
89
|
+
verify: التحقق
|
90
|
+
offline_confirmations:
|
91
|
+
new:
|
92
|
+
cancel: إلغاء
|
93
|
+
verify: التحقق
|
94
|
+
pending_authorizations:
|
95
|
+
index:
|
96
|
+
config: التكوين
|
97
|
+
offline_verification: التحقق حاليا
|
98
|
+
title: في انتظار التحقق عبر الإنترنت
|
99
|
+
verification_number: 'التحقق #%{n}'
|
100
|
+
authorizations:
|
101
|
+
choose:
|
102
|
+
choose_a_type: "الرجاء تحديد الطريقة التي تريد التحقق منها:"
|
103
|
+
offline: غير متصل على الانترنت
|
104
|
+
online: عبر الانترنت
|
105
|
+
title: تحقق من نفسك باستخدام مستند هويتك
|
106
|
+
create:
|
107
|
+
error: حدثت مشكلة أثناء تحميل المستند
|
108
|
+
edit:
|
109
|
+
being_reviewed: نحن نراجع مستنداتك سيتم التحقق منك قريبًا
|
110
|
+
offline: استخدم التحقق بلا اتصال
|
111
|
+
online: استخدام التحقق عبر الإنترنت
|
112
|
+
rejection_clarity: تأكد من أن المعلومات مرئية بوضوح في الصورة التي تم تحميلها
|
113
|
+
rejection_correctness: تأكد من صحة المعلومات التي تم إدخالها
|
114
|
+
rejection_notice: حدثت مشكلة في عملية التحقق. حاول مرة اخرى
|
115
|
+
send: طلب التحقق مرة أخرى
|
116
|
+
new:
|
117
|
+
send: طلب التحقق
|
118
|
+
title: قم بتحميل مستند هويتك
|
119
|
+
update:
|
120
|
+
error: حدثت مشكلة أثناء إعادة تحميل المستند
|
121
|
+
dni: DNI
|
122
|
+
nie: NIE
|
123
|
+
passport: جواز سفر
|
124
|
+
postal_letter:
|
125
|
+
admin:
|
126
|
+
pending_authorizations:
|
127
|
+
index:
|
128
|
+
address: عنوان
|
129
|
+
letter_sent_at: رسالة أرسلت في
|
130
|
+
mark_as_sent: بمناسبة إرسالها
|
131
|
+
not_yet_sent: لم ترسل بعد
|
132
|
+
title: التحقق المستمر
|
133
|
+
username: اسم المستخدم
|
134
|
+
verification_code: شيفرة التأكيد
|
135
|
+
postages:
|
136
|
+
create:
|
137
|
+
error: خطأ في تعليم الرسالة على أنها مرسلة
|
138
|
+
success: تم تعليم الرسالة بنجاح على أنها مرسلة
|
139
|
+
authorizations:
|
140
|
+
create:
|
141
|
+
error: كانت هناك مشكلة مع طلبك
|
142
|
+
success: شكر! سنرسل رمز التحقق إلى عنوانك
|
143
|
+
edit:
|
144
|
+
send: تؤكد
|
145
|
+
title: قدم رمز التحقق الذي تلقيته
|
146
|
+
waiting_for_letter: سنرسل خطابًا إلى عنوانك مع رمز التحقق قريبًا
|
147
|
+
new:
|
148
|
+
send: ارسل لي خطاب
|
149
|
+
title: اطلب رمز التحقق
|
150
|
+
update:
|
151
|
+
error: رمز التحقق الخاص بك لا يطابق رمزنا. يرجى التحقق مرة أخرى من الرسالة التي أرسلناها إليك
|
152
|
+
success: تهانينا. لقد تم التحقق بنجاح
|
153
|
+
sms:
|
154
|
+
authorizations:
|
155
|
+
create:
|
156
|
+
error: كانت هناك مشكلة مع طلبك
|
157
|
+
success: شكر! لقد أرسلنا رسالة نصية قصيرة إلى هاتفك.
|
158
|
+
edit:
|
159
|
+
send: تؤكد
|
160
|
+
title: قدم رمز التحقق الذي تلقيته
|
161
|
+
new:
|
162
|
+
send: ارسل لي رسالة
|
163
|
+
title: اطلب رمز التحقق
|
164
|
+
update:
|
165
|
+
error: رمز التحقق الخاص بك لا يطابق رمزنا. يرجى التحقق مرة أخرى من الرسائل القصيرة التي أرسلناها إليك.
|
166
|
+
success: تهانينا. لقد تم التحقق بنجاح.
|
167
|
+
errors:
|
168
|
+
messages:
|
169
|
+
uppercase_only_letters_numbers: يجب أن تكون جميعها كبيرة وتحتوي فقط على أحرف و / أو أرقام
|
data/config/locales/ca.yml
CHANGED
@@ -3,8 +3,8 @@ ca:
|
|
3
3
|
attributes:
|
4
4
|
config:
|
5
5
|
available_methods: Mètodes disponibles
|
6
|
-
offline:
|
7
|
-
offline_explanation: Instruccions per a la verificació
|
6
|
+
offline: Sense connexió
|
7
|
+
offline_explanation: Instruccions per a la verificació sense connexió
|
8
8
|
online: En línia
|
9
9
|
id_document_information:
|
10
10
|
document_number: Número de document (amb lletra)
|
@@ -0,0 +1,190 @@
|
|
1
|
+
cs:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
config:
|
5
|
+
available_methods: Dostupné metody
|
6
|
+
offline: Offline
|
7
|
+
offline_explanation: Pokyny pro ověření offline
|
8
|
+
online: Online
|
9
|
+
id_document_information:
|
10
|
+
document_number: Číslo dokumentu (s písmenem)
|
11
|
+
document_type: Typ dokumentu
|
12
|
+
id_document_upload:
|
13
|
+
document_number: Číslo dokumentu (s písmenem)
|
14
|
+
document_type: Typ dokumentu
|
15
|
+
user: Uživatel
|
16
|
+
verification_attachment: Naskenovaná kopie dokumentu
|
17
|
+
offline_confirmation:
|
18
|
+
email: Uživatelský e-mail
|
19
|
+
postal_letter_address:
|
20
|
+
full_address: Celá adresa
|
21
|
+
postal_letter_confirmation:
|
22
|
+
verification_code: Ověřovací kód
|
23
|
+
postal_letter_postage:
|
24
|
+
full_address: Celá adresa
|
25
|
+
verification_code: Ověřovací kód
|
26
|
+
decidim:
|
27
|
+
admin:
|
28
|
+
menu:
|
29
|
+
authorization_workflows: Ověření
|
30
|
+
admin_log:
|
31
|
+
organization:
|
32
|
+
update_id_documents_config: "%{user_name} aktualizovala konfiguraci ověření dokumentů identit"
|
33
|
+
user:
|
34
|
+
grant_id_documents_offline_verification: "%{user_name} ověřeno %{resource_name} pomocí ověření dokumentů offline"
|
35
|
+
authorization_handlers:
|
36
|
+
admin:
|
37
|
+
id_documents:
|
38
|
+
help:
|
39
|
+
- Uživatelé vyplní informace o své identitě a nahrají kopii dokumentu.
|
40
|
+
- Vyplníte informace obsažené v nahraném obrázku.
|
41
|
+
- Informace by měly odpovídat uživateli, který vyplnil.
|
42
|
+
- Pokud nemůžete informace zřetelně vidět nebo ji nelze ověřit, můžete žádost odmítnout a uživatel ji bude moci opravit.
|
43
|
+
postal_letter:
|
44
|
+
help:
|
45
|
+
- Uživatelé požadují, aby jejich adresa byla odeslána ověřovacímu kódu.
|
46
|
+
- Na adresu zasíláte dopis s ověřovacím kódem.
|
47
|
+
- Označte písmeno jako odesláno.
|
48
|
+
- Jakmile označíte odeslané písmeno, uživatel bude schopen kód zadat a ověřit.
|
49
|
+
direct: Přímo
|
50
|
+
help: Pomoc
|
51
|
+
id_documents:
|
52
|
+
explanation: Nahrajte své doklady totožnosti, abychom mohli ověřit vaši totožnost
|
53
|
+
name: Doklady totožnosti
|
54
|
+
multistep: Více kroků
|
55
|
+
name: název
|
56
|
+
postal_letter:
|
57
|
+
explanation: Pošleme vám poštovní dopis s kódem, který budete muset zadat, abychom mohli ověřit vaši adresu
|
58
|
+
name: Kód poštovním dopisem
|
59
|
+
verifications:
|
60
|
+
authorizations:
|
61
|
+
create:
|
62
|
+
error: Při vytváření oprávnění došlo k chybě.
|
63
|
+
success: Byl jste úspěšně autorizován.
|
64
|
+
unconfirmed: Potřebujete potvrdit svůj e-mail, abyste se autorizovali.
|
65
|
+
first_login:
|
66
|
+
actions:
|
67
|
+
another_dummy_authorization_handler: Ověřte proti jinému příkladu pověření pro autorizaci
|
68
|
+
dummy_authorization_handler: Ověřte proti příkladu pověření autorizace
|
69
|
+
dummy_authorization_workflow: Ověřte proti pracovnímu postupu autorizace
|
70
|
+
id_documents: Získejte ověření odesláním dokladu totožnosti
|
71
|
+
postal_letter: Ověřte si, zda obdržíte ověřovací kód poštou
|
72
|
+
title: Potvrďte vaši identitu
|
73
|
+
verify_with_these_options: 'Jsou to dostupné možnosti k ověření totožnosti:'
|
74
|
+
new:
|
75
|
+
authorize: Poslat
|
76
|
+
authorize_with: Ověřte pomocí %{authorizer}
|
77
|
+
skip_verification: Můžete to přeskočit nyní a %{link}
|
78
|
+
start_exploring: začít zkoumat
|
79
|
+
dummy_authorization:
|
80
|
+
extra_explanation:
|
81
|
+
one: Účast je omezena na uživatele s poštovním směrovacím číslem %{postal_codes}.
|
82
|
+
few: 'Účast je omezena na uživatele s některým z následujících poštovních směrovacích čísel: %{postal_codes}.'
|
83
|
+
many: 'Účast je omezena na uživatele s některým z následujících poštovních směrovacích čísel: %{postal_codes}.'
|
84
|
+
other: 'Účast je omezena na uživatele s některým z následujících poštovních směrovacích čísel: %{postal_codes}.'
|
85
|
+
id_documents:
|
86
|
+
admin:
|
87
|
+
config:
|
88
|
+
edit:
|
89
|
+
title: Konfigurace dokumentů identit
|
90
|
+
update: Aktualizace
|
91
|
+
update:
|
92
|
+
error: Při aktualizaci konfigurace došlo k chybě.
|
93
|
+
success: Konfigurace byla úspěšně aktualizována
|
94
|
+
confirmations:
|
95
|
+
create:
|
96
|
+
error: Ověření neodpovídá. Ověřte znovu nebo odmítněte ověření, aby jej uživatel mohl změnit
|
97
|
+
success: Uživatel úspěšně ověřen
|
98
|
+
new:
|
99
|
+
introduce_user_data: Vložte data do obrázku
|
100
|
+
reject: Odmítnout
|
101
|
+
verify: Ověřte
|
102
|
+
offline_confirmations:
|
103
|
+
create:
|
104
|
+
error: Ověření neodpovídá. Zkuste to znovu nebo řekněte uživateli, že ho změní
|
105
|
+
success: Uživatel úspěšně ověřen
|
106
|
+
new:
|
107
|
+
cancel: zrušení
|
108
|
+
introduce_user_data: Zadejte e-mail uživatele a data dokumentu
|
109
|
+
verify: Ověřte
|
110
|
+
pending_authorizations:
|
111
|
+
index:
|
112
|
+
config: Config
|
113
|
+
offline_verification: Ověření offline
|
114
|
+
title: Čekající ověření online
|
115
|
+
verification_number: 'Ověření #%{n}'
|
116
|
+
rejections:
|
117
|
+
create:
|
118
|
+
success: Ověření bylo zamítnuto. Uživatel bude vyzván, aby změnil své dokumenty
|
119
|
+
authorizations:
|
120
|
+
choose:
|
121
|
+
choose_a_type: "Vyberte, jak chcete ověřit:"
|
122
|
+
offline: Offline
|
123
|
+
online: Online
|
124
|
+
title: Ověřte svou identitu
|
125
|
+
create:
|
126
|
+
error: Při nahrávání dokumentu došlo k potížím
|
127
|
+
success: Dokument byl úspěšně nahrán
|
128
|
+
edit:
|
129
|
+
being_reviewed: Kontrolujeme vaše dokumenty. Budete brzy ověřeni
|
130
|
+
offline: Použijte ověření offline
|
131
|
+
online: Používejte ověření online
|
132
|
+
rejection_clarity: Ujistěte se, že informace jsou v nahraném obrázku jasně viditelné
|
133
|
+
rejection_correctness: Ujistěte se, že zadané informace jsou správné
|
134
|
+
rejection_notice: Při ověřování došlo k potížím. Prosím zkuste to znovu
|
135
|
+
send: Znovu požádejte o ověření
|
136
|
+
new:
|
137
|
+
send: Požádejte o ověření
|
138
|
+
title: Nahrajte svůj doklad totožnosti
|
139
|
+
update:
|
140
|
+
error: Při načítání dokumentu došlo k problému
|
141
|
+
success: Dokument byl úspěšně obnoven
|
142
|
+
dni: DNI
|
143
|
+
nie: NIE
|
144
|
+
passport: Cestovní pas
|
145
|
+
postal_letter:
|
146
|
+
admin:
|
147
|
+
pending_authorizations:
|
148
|
+
index:
|
149
|
+
address: Adresa
|
150
|
+
letter_sent_at: Dopis zaslaný na
|
151
|
+
mark_as_sent: Označit jako odesláno
|
152
|
+
not_yet_sent: Dosud nebyla odeslána
|
153
|
+
title: Probíhající ověřování
|
154
|
+
username: Uživatelské jméno
|
155
|
+
verification_code: Ověřovací kód
|
156
|
+
postages:
|
157
|
+
create:
|
158
|
+
error: Chyba při označování dopisu
|
159
|
+
success: Písmeno bylo úspěšně označeno jako odesláno
|
160
|
+
authorizations:
|
161
|
+
create:
|
162
|
+
error: Při vašem požadavku došlo k potížím
|
163
|
+
success: Dík! Na vaši adresu vám zašleme ověřovací kód
|
164
|
+
edit:
|
165
|
+
send: Potvrdit
|
166
|
+
title: Zadejte ověřovací kód, který jste obdrželi
|
167
|
+
waiting_for_letter: Na váš adresu vám brzy zašleme váš ověřovací kód
|
168
|
+
new:
|
169
|
+
send: Pošlete mi dopis
|
170
|
+
title: Požádejte o ověřovací kód
|
171
|
+
update:
|
172
|
+
error: Váš ověřovací kód neodpovídá našemu. Zkontrolujte, prosím, dopis, který jsme vám poslali
|
173
|
+
success: Gratulujeme. Byl jste úspěšně ověřen
|
174
|
+
sms:
|
175
|
+
authorizations:
|
176
|
+
create:
|
177
|
+
error: Při vašem požadavku došlo k potížím
|
178
|
+
success: Dík! Do telefonu jsme poslali SMS.
|
179
|
+
edit:
|
180
|
+
send: Potvrdit
|
181
|
+
title: Zadejte ověřovací kód, který jste obdrželi
|
182
|
+
new:
|
183
|
+
send: Pošlete mi SMS
|
184
|
+
title: Požádejte o ověřovací kód
|
185
|
+
update:
|
186
|
+
error: Váš ověřovací kód neodpovídá našemu. Prosím, zkontrolujte SMS, který jsme vám poslali.
|
187
|
+
success: Gratulujeme. Byl jste úspěšně ověřen.
|
188
|
+
errors:
|
189
|
+
messages:
|
190
|
+
uppercase_only_letters_numbers: musí být všechny velké a obsahují pouze písmena a / nebo čísla
|
@@ -0,0 +1,188 @@
|
|
1
|
+
es-MX:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
config:
|
5
|
+
available_methods: Metodos disponibles
|
6
|
+
offline: Desconectado
|
7
|
+
offline_explanation: Instrucciones para la verificación fuera de línea
|
8
|
+
online: En línea
|
9
|
+
id_document_information:
|
10
|
+
document_number: Número de documento (con letra)
|
11
|
+
document_type: Tipo de documento
|
12
|
+
id_document_upload:
|
13
|
+
document_number: Número de documento (con letra)
|
14
|
+
document_type: Tipo de tu documento
|
15
|
+
user: Usuario
|
16
|
+
verification_attachment: Copia escaneada de tu documento
|
17
|
+
offline_confirmation:
|
18
|
+
email: Email del usuario
|
19
|
+
postal_letter_address:
|
20
|
+
full_address: Dirección completa
|
21
|
+
postal_letter_confirmation:
|
22
|
+
verification_code: Código de verificación
|
23
|
+
postal_letter_postage:
|
24
|
+
full_address: Dirección completa
|
25
|
+
verification_code: Código de verificación
|
26
|
+
decidim:
|
27
|
+
admin:
|
28
|
+
menu:
|
29
|
+
authorization_workflows: Verificaciones
|
30
|
+
admin_log:
|
31
|
+
organization:
|
32
|
+
update_id_documents_config: "%{user_name} ha actualizado la configuración de verificación mediante documentos de identidad"
|
33
|
+
user:
|
34
|
+
grant_id_documents_offline_verification: "%{user_name} ha verificado %{resource_name} utilizando una verificación presencial mediante documentos de identidad"
|
35
|
+
authorization_handlers:
|
36
|
+
admin:
|
37
|
+
id_documents:
|
38
|
+
help:
|
39
|
+
- Los usuarios rellenan la información de su identidad y suben una copia de su documento.
|
40
|
+
- Rellenas la información presente en la imagen subida.
|
41
|
+
- La información debe coincidir con lo que el usuario envió.
|
42
|
+
- Si no puedes ver claramente la información o no puedes verificarla, puedes rechazar la solicitud y el usuario podrá corregirla.
|
43
|
+
postal_letter:
|
44
|
+
help:
|
45
|
+
- Los usuarios solicitan que se envíe un código de verificación a su dirección.
|
46
|
+
- Envías la carta a su dirección con el código de verificación.
|
47
|
+
- Marcas la carta como enviada.
|
48
|
+
- Una vez hayas marcado la carta como enviada, el usuario podrá introducir el código y ser verificado.
|
49
|
+
direct: Directo
|
50
|
+
help: Ayuda
|
51
|
+
id_documents:
|
52
|
+
explanation: Sube tus documentos de identidad para que podamos verificar tu identidad
|
53
|
+
name: Documentos de identidad
|
54
|
+
multistep: Con varios pasos
|
55
|
+
name: Nombre
|
56
|
+
postal_letter:
|
57
|
+
explanation: Te enviaremos una carta postal con un código que deberás ingresar para que podamos verificar tu dirección
|
58
|
+
name: Código por carta postal
|
59
|
+
verifications:
|
60
|
+
authorizations:
|
61
|
+
create:
|
62
|
+
error: Hubo un error al crear la autorización.
|
63
|
+
success: Has sido autorizado/a correctamente.
|
64
|
+
unconfirmed: Necesitas confirmar tu correo electrónico para autorizarte.
|
65
|
+
first_login:
|
66
|
+
actions:
|
67
|
+
another_dummy_authorization_handler: Verificar contra otro ejemplo de controlador de autorización
|
68
|
+
dummy_authorization_handler: Verificar contra el gestor de autorización de ejemplo
|
69
|
+
dummy_authorization_workflow: Verificar contra el flujo de autorización de ejemplo
|
70
|
+
id_documents: Verifícate subiendo tu documento de identidad
|
71
|
+
postal_letter: Verifícate recibiendo un código de verificación a través de correo postal
|
72
|
+
title: Verifica tu identidad
|
73
|
+
verify_with_these_options: 'Estas son las opciones disponibles para verificar tu identidad:'
|
74
|
+
new:
|
75
|
+
authorize: Enviar
|
76
|
+
authorize_with: Verificar con %{authorizer}
|
77
|
+
skip_verification: Puedes saltarte este paso por ahora y %{link}
|
78
|
+
start_exploring: empezar a explorar
|
79
|
+
dummy_authorization:
|
80
|
+
extra_explanation:
|
81
|
+
one: La participación está restringida a usuarios con el código postal %{postal_codes}.
|
82
|
+
other: 'La participación está restringida a usuarios con cualquiera de los siguientes códigos postales: %{postal_codes}.'
|
83
|
+
id_documents:
|
84
|
+
admin:
|
85
|
+
config:
|
86
|
+
edit:
|
87
|
+
title: Configuración de documentos de identidad
|
88
|
+
update: Actualizar
|
89
|
+
update:
|
90
|
+
error: Se ha producido un error al actualizar la configuración.
|
91
|
+
success: Configuración actualizada correctamente
|
92
|
+
confirmations:
|
93
|
+
create:
|
94
|
+
error: La verificación no coincide. Inténtalo de nuevo o rechaza la verificación para que el usuario pueda modificarla
|
95
|
+
success: El usuario ha sido verificado correctamente
|
96
|
+
new:
|
97
|
+
introduce_user_data: Introduce los datos de la imagen
|
98
|
+
reject: Rechazar
|
99
|
+
verify: Verificar
|
100
|
+
offline_confirmations:
|
101
|
+
create:
|
102
|
+
error: La verificación no coincide. Inténtalo de nuevo o dile al usuario que lo corrija
|
103
|
+
success: El usuario ha sido verificado correctamente
|
104
|
+
new:
|
105
|
+
cancel: Cancelar
|
106
|
+
introduce_user_data: Introduce el correo electrónico del usuario y los datos del documento
|
107
|
+
verify: Verificar
|
108
|
+
pending_authorizations:
|
109
|
+
index:
|
110
|
+
config: Configurar
|
111
|
+
offline_verification: Verificación presencial
|
112
|
+
title: Verificaciones online pendientes
|
113
|
+
verification_number: 'Verificación #%{n}'
|
114
|
+
rejections:
|
115
|
+
create:
|
116
|
+
success: Verificación rechazada. Se le pedirá al usuario que modifique sus documentos
|
117
|
+
authorizations:
|
118
|
+
choose:
|
119
|
+
choose_a_type: "Por favor selecciona como quieres ser verificado:"
|
120
|
+
offline: Presencial
|
121
|
+
online: Online
|
122
|
+
title: Verifícate utilizando tu documento de identidad
|
123
|
+
create:
|
124
|
+
error: Hubo un problema al subir tu documento
|
125
|
+
success: El documento se ha subido correctamente
|
126
|
+
edit:
|
127
|
+
being_reviewed: Estamos revisando tus documentos. Serás verificado en breve
|
128
|
+
offline: Utiliza la verificación presencial
|
129
|
+
online: Utiliza la verificación online
|
130
|
+
rejection_clarity: Asegúrate de que la información sea claramente visible en la imagen subida
|
131
|
+
rejection_correctness: Asegúrate de que la información ingresada sea correcta
|
132
|
+
rejection_notice: Hubo un problema con tu verificación. Inténtalo de nuevo
|
133
|
+
send: Solicitar verificación de nuevo
|
134
|
+
new:
|
135
|
+
send: Solicitar verificación
|
136
|
+
title: Sube tu documento de Identidad
|
137
|
+
update:
|
138
|
+
error: Hubo un problema al volver a subir tu documento
|
139
|
+
success: El documento se ha resubido correctamente
|
140
|
+
dni: DNI
|
141
|
+
nie: NIE
|
142
|
+
passport: Pasaporte
|
143
|
+
postal_letter:
|
144
|
+
admin:
|
145
|
+
pending_authorizations:
|
146
|
+
index:
|
147
|
+
address: Dirección
|
148
|
+
letter_sent_at: Carta enviada el
|
149
|
+
mark_as_sent: Marcar como enviada
|
150
|
+
not_yet_sent: Aún no se ha enviado
|
151
|
+
title: Verificaciones en curso
|
152
|
+
username: Nombre de usuario
|
153
|
+
verification_code: Código de verificación
|
154
|
+
postages:
|
155
|
+
create:
|
156
|
+
error: Error al marcar la carta como enviada
|
157
|
+
success: Carta marcada como enviada correctamente
|
158
|
+
authorizations:
|
159
|
+
create:
|
160
|
+
error: Hubo un problema con su petición
|
161
|
+
success: '¡Gracias! Te enviaremos un código de verificación a tu dirección'
|
162
|
+
edit:
|
163
|
+
send: Confirmar
|
164
|
+
title: Introduce el código de verificación que recibiste
|
165
|
+
waiting_for_letter: Pronto enviaremos una carta a tu dirección con tu código de verificación
|
166
|
+
new:
|
167
|
+
send: Mándame una carta
|
168
|
+
title: Solicita tu código de verificación
|
169
|
+
update:
|
170
|
+
error: Tu código de verificación no coincide con el nuestro. Por favor, revisa la carta que te enviamos
|
171
|
+
success: Felicidades. Has sido verificado correctamente
|
172
|
+
sms:
|
173
|
+
authorizations:
|
174
|
+
create:
|
175
|
+
error: Hubo un problema con tu solicitud
|
176
|
+
success: '¡Gracias! Hemos enviado un SMS a tu teléfono.'
|
177
|
+
edit:
|
178
|
+
send: Confirmar
|
179
|
+
title: Introduce el código de verificación que has recibido
|
180
|
+
new:
|
181
|
+
send: Mándame un SMS
|
182
|
+
title: Solicita tu código de verificación
|
183
|
+
update:
|
184
|
+
error: Tu código de verificación no coincide con el nuestro. Por favor, vuelve a comprobar los SMS que te enviamos.
|
185
|
+
success: Felicidades. Has sido verificado con éxito.
|
186
|
+
errors:
|
187
|
+
messages:
|
188
|
+
uppercase_only_letters_numbers: debe ser todo en mayúsculas y contener solo letras y/o números
|
data/config/locales/es-PY.yml
CHANGED
@@ -100,7 +100,7 @@ es-PY:
|
|
100
100
|
offline_confirmations:
|
101
101
|
create:
|
102
102
|
error: La verificación no coincide. Inténtalo de nuevo o dile al usuario que lo corrija
|
103
|
-
success:
|
103
|
+
success: El usuario ha sido verificado correctamente
|
104
104
|
new:
|
105
105
|
cancel: Cancelar
|
106
106
|
introduce_user_data: Introduce el correo electrónico del usuario y los datos del documento
|
data/config/locales/es.yml
CHANGED
@@ -4,7 +4,7 @@ es:
|
|
4
4
|
config:
|
5
5
|
available_methods: Metodos disponibles
|
6
6
|
offline: Desconectado
|
7
|
-
offline_explanation: Instrucciones para la verificación
|
7
|
+
offline_explanation: Instrucciones para la verificación presencial
|
8
8
|
online: En línea
|
9
9
|
id_document_information:
|
10
10
|
document_number: Número de documento (con letra)
|
@@ -100,7 +100,7 @@ es:
|
|
100
100
|
offline_confirmations:
|
101
101
|
create:
|
102
102
|
error: La verificación no coincide. Inténtalo de nuevo o dile al usuario que lo corrija
|
103
|
-
success:
|
103
|
+
success: El usuario ha sido verificado correctamente
|
104
104
|
new:
|
105
105
|
cancel: Cancelar
|
106
106
|
introduce_user_data: Introduce el correo electrónico del usuario y los datos del documento
|
data/config/locales/fi.yml
CHANGED
@@ -121,7 +121,7 @@ fi:
|
|
121
121
|
online: Online
|
122
122
|
title: Varmista henkilöllisyytesi käyttämällä henkilöllisyystodistusta
|
123
123
|
create:
|
124
|
-
error: Asiakirjan
|
124
|
+
error: Asiakirjan laatiminen epäonnistui
|
125
125
|
success: Asiakirja ladattu onnistuneesti
|
126
126
|
edit:
|
127
127
|
being_reviewed: Tarkistamme asiakirjojasi. Tilisi vahvistetaan pian
|
@@ -153,7 +153,7 @@ fi:
|
|
153
153
|
verification_code: Vahvistuskoodi
|
154
154
|
postages:
|
155
155
|
create:
|
156
|
-
error:
|
156
|
+
error: Kirjeen lähetetyksi merkkaaminen epäonnistui
|
157
157
|
success: Kirje onnistuneesti merkitty lähetetyksi
|
158
158
|
authorizations:
|
159
159
|
create:
|
data/config/locales/hu.yml
CHANGED
@@ -85,9 +85,9 @@ hu:
|
|
85
85
|
config:
|
86
86
|
edit:
|
87
87
|
title: Azonosító dokumentumok konfigurálása
|
88
|
-
update:
|
88
|
+
update: Frissítés
|
89
89
|
update:
|
90
|
-
error: Hiba történt a konfiguráció
|
90
|
+
error: Hiba történt a konfiguráció frissítése során.
|
91
91
|
success: A konfiguráció sikeresen frissült
|
92
92
|
confirmations:
|
93
93
|
create:
|
@@ -100,11 +100,11 @@ hu:
|
|
100
100
|
offline_confirmations:
|
101
101
|
create:
|
102
102
|
error: Az ellenőrzés nem egyezik. Próbálja újra vagy mondja meg a felhasználót, hogy módosítsa azt
|
103
|
-
success:
|
103
|
+
success: Felhasználó ellenőrzése sikeres
|
104
104
|
new:
|
105
|
-
cancel:
|
105
|
+
cancel: Mégse
|
106
106
|
introduce_user_data: Ismertesse a felhasználói e-mailt és a dokumentumadatokat
|
107
|
-
verify:
|
107
|
+
verify: Ellenőrzés
|
108
108
|
pending_authorizations:
|
109
109
|
index:
|
110
110
|
config: config
|
@@ -175,10 +175,10 @@ hu:
|
|
175
175
|
error: Probléma volt a kéréssel
|
176
176
|
success: Kösz! SMS-t küldtünk telefonjára.
|
177
177
|
edit:
|
178
|
-
send:
|
178
|
+
send: Megerősítés
|
179
179
|
title: Vigye be a kapott ellenőrző kódot
|
180
180
|
new:
|
181
|
-
send: Küldj nekem
|
181
|
+
send: Küldj nekem SMS-t
|
182
182
|
title: Kérjen ellenőrző kódot
|
183
183
|
update:
|
184
184
|
error: Az ellenőrző kód nem egyezik a miénk. Kérjük, ellenőrizze az SMS-t, amit elküldtek.
|
data/config/locales/ru.yml
CHANGED
@@ -79,6 +79,9 @@ ru:
|
|
79
79
|
introduce_user_data: Введите данные на картинке
|
80
80
|
reject: Отклонить
|
81
81
|
verify: Подтвердить личность
|
82
|
+
offline_confirmations:
|
83
|
+
create:
|
84
|
+
success: Литчность участника успешно подтверждена
|
82
85
|
pending_authorizations:
|
83
86
|
index:
|
84
87
|
title: Подтверждения, ожидающие рассмотрения
|
data/config/locales/uk.yml
CHANGED
@@ -79,6 +79,9 @@ uk:
|
|
79
79
|
introduce_user_data: Введіть відомості на картинці
|
80
80
|
reject: Відхилити
|
81
81
|
verify: Підтвердити
|
82
|
+
offline_confirmations:
|
83
|
+
create:
|
84
|
+
success: Особу учасника успішно підтверджено
|
82
85
|
pending_authorizations:
|
83
86
|
index:
|
84
87
|
title: Підтвердження, які очікують на розгляд
|
@@ -70,19 +70,25 @@ module Decidim
|
|
70
70
|
attr_reader :authorization, :options, :component, :resource
|
71
71
|
|
72
72
|
def unmatched_fields
|
73
|
-
@unmatched_fields ||= (
|
73
|
+
@unmatched_fields ||= (valid_options_keys & authorization.metadata.to_h.keys).each_with_object({}) do |field, unmatched|
|
74
74
|
unmatched[field] = options[field] if authorization.metadata[field] != options[field]
|
75
75
|
unmatched
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
79
|
def missing_fields
|
80
|
-
@missing_fields ||=
|
80
|
+
@missing_fields ||= valid_options_keys.each_with_object([]) do |field, missing|
|
81
81
|
missing << field if authorization.metadata[field].blank?
|
82
82
|
missing
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
+
def valid_options_keys
|
87
|
+
@valid_options_keys ||= options.map do |key, value|
|
88
|
+
key if value.present?
|
89
|
+
end.compact
|
90
|
+
end
|
91
|
+
|
86
92
|
def authorization_expired?
|
87
93
|
authorization.expires_at.present? && authorization.expired?
|
88
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-verifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-core
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.16.
|
19
|
+
version: 0.16.1
|
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.16.
|
26
|
+
version: 0.16.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-admin
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.16.
|
33
|
+
version: 0.16.1
|
34
34
|
type: :development
|
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.16.
|
40
|
+
version: 0.16.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: decidim-dev
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.16.
|
47
|
+
version: 0.16.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.16.
|
54
|
+
version: 0.16.1
|
55
55
|
description: Several verification methods for your decidim instance
|
56
56
|
email:
|
57
57
|
- deivid.rodriguez@riseup.net
|
@@ -111,9 +111,12 @@ files:
|
|
111
111
|
- app/views/decidim/verifications/sms/authorizations/edit.html.erb
|
112
112
|
- app/views/decidim/verifications/sms/authorizations/new.html.erb
|
113
113
|
- app/views/dummy_authorization/_form.html.erb
|
114
|
+
- config/locales/ar-SA.yml
|
114
115
|
- config/locales/ca.yml
|
116
|
+
- config/locales/cs-CZ.yml
|
115
117
|
- config/locales/de.yml
|
116
118
|
- config/locales/en.yml
|
119
|
+
- config/locales/es-MX.yml
|
117
120
|
- config/locales/es-PY.yml
|
118
121
|
- config/locales/es.yml
|
119
122
|
- config/locales/eu.yml
|