decidim-verifications 0.20.1 → 0.23.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 +19 -3
- data/app/cells/decidim/verifications/authorization_metadata/show.erb +13 -0
- data/app/cells/decidim/verifications/authorization_metadata_cell.rb +22 -0
- data/app/cells/decidim/verifications/revocations/show.erb +40 -0
- data/app/cells/decidim/verifications/revocations_cell.rb +19 -0
- data/app/commands/decidim/verifications/confirm_user_authorization.rb +49 -9
- data/app/commands/decidim/verifications/destroy_user_authorization.rb +24 -0
- data/app/commands/decidim/verifications/revoke_all_authorizations.rb +48 -0
- data/app/commands/decidim/verifications/revoke_by_condition_authorizations.rb +68 -0
- data/app/controllers/concerns/decidim/verifications/renewable.rb +37 -0
- data/app/controllers/decidim/verifications/admin/verifications_controller.rb +40 -0
- data/app/controllers/decidim/verifications/application_controller.rb +5 -1
- data/app/controllers/decidim/verifications/authorizations_controller.rb +19 -2
- data/app/controllers/decidim/verifications/csv_census/authorizations_controller.rb +3 -1
- data/app/controllers/decidim/verifications/id_documents/admin/confirmations_controller.rb +1 -1
- data/app/controllers/decidim/verifications/id_documents/authorizations_controller.rb +2 -0
- data/app/controllers/decidim/verifications/postal_letter/authorizations_controller.rb +3 -1
- data/app/controllers/decidim/verifications/sms/authorizations_controller.rb +3 -1
- data/app/forms/decidim/verifications/admin/revocations_before_date_form.rb +16 -0
- data/app/forms/decidim/verifications/id_documents/upload_form.rb +1 -2
- data/app/models/decidim/verifications/csv_census/data.rb +1 -1
- data/app/queries/decidim/verifications/authorizations_before_date.rb +51 -0
- data/app/services/decidim/authorization_handler.rb +4 -0
- data/app/views/decidim/verifications/authorizations/_granted_authorization.html.erb +29 -24
- data/app/views/decidim/verifications/authorizations/first_login.html.erb +2 -2
- data/app/views/decidim/verifications/authorizations/index.html.erb +22 -12
- data/app/views/decidim/verifications/authorizations/new.html.erb +2 -2
- data/app/views/decidim/verifications/authorizations/renew_modal.html.erb +38 -0
- data/app/views/decidim/verifications/id_documents/admin/pending_authorizations/index.html.erb +4 -4
- data/app/views/decidim/verifications/id_documents/authorizations/_form.html.erb +2 -0
- data/app/views/decidim/verifications/postal_letter/authorizations/edit.html.erb +2 -0
- data/app/views/decidim/verifications/postal_letter/authorizations/new.html.erb +2 -0
- data/app/views/decidim/verifications/sms/authorizations/edit.html.erb +2 -0
- data/app/views/decidim/verifications/sms/authorizations/new.html.erb +2 -0
- data/app/views/dummy_authorization/_form.html.erb +23 -4
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +9 -6
- data/config/locales/bg-BG.yml +18 -0
- data/config/locales/bg.yml +18 -0
- data/config/locales/ca.yml +34 -2
- data/config/locales/cs.yml +36 -4
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +35 -2
- data/config/locales/el.yml +259 -0
- data/config/locales/en.yml +34 -2
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +34 -2
- data/config/locales/es-PY.yml +34 -2
- data/config/locales/es.yml +34 -2
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +5 -2
- data/config/locales/fi-plain.yml +34 -2
- data/config/locales/fi.yml +44 -12
- data/config/locales/fr-CA.yml +260 -0
- data/config/locales/fr.yml +34 -2
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +5 -2
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +26 -2
- data/config/locales/id-ID.yml +4 -1
- data/config/locales/is.yml +120 -0
- data/config/locales/it.yml +34 -2
- data/config/locales/ja-JP.yml +259 -0
- data/config/locales/ja.yml +259 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +250 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +34 -2
- data/config/locales/no.yml +5 -2
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +91 -58
- data/config/locales/pt-BR.yml +6 -3
- data/config/locales/pt.yml +127 -94
- data/config/locales/ro-RO.yml +261 -0
- data/config/locales/ru.yml +5 -4
- data/config/locales/sk-SK.yml +258 -0
- data/config/locales/sk.yml +259 -0
- data/config/locales/sl.yml +5 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +34 -2
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +5 -2
- data/config/locales/uk.yml +5 -4
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +257 -0
- data/config/locales/zh-TW.yml +1 -0
- data/lib/decidim/verifications/adapter.rb +12 -0
- data/lib/decidim/verifications/csv_census/engine.rb +3 -1
- data/lib/decidim/verifications/engine.rb +13 -0
- data/lib/decidim/verifications/id_documents/engine.rb +1 -0
- data/lib/decidim/verifications/postal_letter/engine.rb +3 -1
- data/lib/decidim/verifications/sms/engine.rb +3 -1
- data/lib/decidim/verifications/version.rb +1 -1
- data/lib/decidim/verifications/workflow_manifest.rb +3 -0
- data/lib/decidim/verifications/workflows.rb +1 -1
- metadata +56 -9
@@ -0,0 +1 @@
|
|
1
|
+
so:
|
@@ -0,0 +1 @@
|
|
1
|
+
sr:
|
data/config/locales/sv.yml
CHANGED
@@ -26,6 +26,18 @@ sv:
|
|
26
26
|
decidim:
|
27
27
|
admin:
|
28
28
|
menu:
|
29
|
+
authorization_revocation:
|
30
|
+
before_date_info: Användbart om dialogen har påbörjats och du vill återkalla behörigheterna för den tidigare dialogen.
|
31
|
+
button: Återkalla alla
|
32
|
+
button_before: Återkalla före datum
|
33
|
+
destroy:
|
34
|
+
confirm: Återkallande av auktorisering före datum kan inte ångras. Vill du fortsätta?
|
35
|
+
confirm_all: Det går inte att ångra återkallande av alla auktoriseringar. Vill du fortsätta?
|
36
|
+
destroy_nok: Det gick inte att återkalla auktoriseringar.
|
37
|
+
destroy_ok: Alla auktoriseringar som överensstämmer har återkallats!
|
38
|
+
info: Det finns totalt %{count} verifierade deltagare.
|
39
|
+
no_data: Inga verifierade deltagare
|
40
|
+
title: Återkallande av verifiering
|
29
41
|
authorization_workflows: Verifieringar
|
30
42
|
admin_log:
|
31
43
|
organization:
|
@@ -65,10 +77,16 @@ sv:
|
|
65
77
|
name: Kod via fysiskt brev
|
66
78
|
verifications:
|
67
79
|
authorizations:
|
80
|
+
authorization_metadata:
|
81
|
+
info: 'Detta är data för den nuvarande verifieringen:'
|
82
|
+
no_data_stored: Ingen data lagrad.
|
68
83
|
create:
|
69
84
|
error: Det gick inte att skapa auktoriseringen.
|
70
85
|
success: Du har auktoriserats.
|
71
86
|
unconfirmed: Du måste bekräfta din e-post för att kunna auktorisera dig själv.
|
87
|
+
destroy:
|
88
|
+
error: Det gick inte att ta bort auktoriseringen.
|
89
|
+
success: Du har tagit bort auktoriseringen.
|
72
90
|
first_login:
|
73
91
|
actions:
|
74
92
|
another_dummy_authorization_handler: Verifiera med hjälp av ett annat auktoriseringsverktyg
|
@@ -77,11 +95,23 @@ sv:
|
|
77
95
|
dummy_authorization_workflow: Verifiera med exemplet på arbetsflöde för auktorisering
|
78
96
|
id_documents: Verifiera dig genom att skicka in din identitetshandling
|
79
97
|
postal_letter: Verifiera dig genom att ta emot en verifieringskod via fysiskt brev
|
98
|
+
sms: Bli verifierad genom att ta emot en SMS-verifieringskod
|
80
99
|
title: Verifiera din identitet
|
81
100
|
verify_with_these_options: 'Det här är de tillgängliga alternativen för att verifiera din identitet:'
|
101
|
+
index:
|
102
|
+
expired_verification: Verifieringen har gått ut
|
103
|
+
pending_verification: Väntar på verifiering
|
104
|
+
show_renew_info: Klicka för att förnya verifieringen
|
105
|
+
unauthorized_verification: Ny verifiering
|
82
106
|
new:
|
83
107
|
authorize: Skicka
|
84
108
|
authorize_with: Verifiera med %{authorizer}
|
109
|
+
renew_modal:
|
110
|
+
cancel: Avbryt
|
111
|
+
close: stäng
|
112
|
+
continue: Fortsätt
|
113
|
+
info_renew: Om du vill uppdatera data får du fortsätta med förnyelsen
|
114
|
+
title: Förnya verifiering
|
85
115
|
skip_verification: Du kan hoppa över detta just nu och %{link}
|
86
116
|
start_exploring: börja utforska
|
87
117
|
csv_census:
|
@@ -113,8 +143,10 @@ sv:
|
|
113
143
|
success: Ditt konto har verifierats.
|
114
144
|
dummy_authorization:
|
115
145
|
extra_explanation:
|
116
|
-
|
117
|
-
|
146
|
+
postal_codes:
|
147
|
+
one: Deltagande är begränsat till deltagare med postnummer %{postal_codes}.
|
148
|
+
other: 'Deltagande är begränsat till deltagare med något av följande postnummer: %{postal_codes}.'
|
149
|
+
scope: Deltagandet är begränsat till deltagare med omfattningen %{scope_name}.
|
118
150
|
id_documents:
|
119
151
|
admin:
|
120
152
|
config:
|
@@ -0,0 +1 @@
|
|
1
|
+
ti:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -82,6 +82,8 @@ tr:
|
|
82
82
|
new:
|
83
83
|
authorize: göndermek
|
84
84
|
authorize_with: '%{authorizer}ile doğrulayın'
|
85
|
+
renew_modal:
|
86
|
+
cancel: İptal etmek
|
85
87
|
skip_verification: Bunu şimdilik ve %{link}için atlayabilirsiniz.
|
86
88
|
start_exploring: keşfetmeye başla
|
87
89
|
csv_census:
|
@@ -112,8 +114,9 @@ tr:
|
|
112
114
|
success: Hesabınız başarıyla doğrulandı.
|
113
115
|
dummy_authorization:
|
114
116
|
extra_explanation:
|
115
|
-
|
116
|
-
|
117
|
+
postal_codes:
|
118
|
+
one: Katılım, posta kodu %{postal_codes}olan kullanıcılarla sınırlıdır.
|
119
|
+
other: 'Katılım, aşağıdaki posta kodlarından herhangi biriyle kullanıcılarla sınırlıdır: %{postal_codes}.'
|
117
120
|
id_documents:
|
118
121
|
admin:
|
119
122
|
config:
|
data/config/locales/uk.yml
CHANGED
@@ -65,10 +65,11 @@ uk:
|
|
65
65
|
start_exploring: почати досліджувати
|
66
66
|
dummy_authorization:
|
67
67
|
extra_explanation:
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
68
|
+
postal_codes:
|
69
|
+
one: Участь обмежується лише учасниками з поштовим кодом %{postal_codes}.
|
70
|
+
few: 'Участь обмежується лише учасниками з поштовими кодами %{postal_codes}.'
|
71
|
+
many: 'Участь обмежується лише учасниками з поштовими кодами %{postal_codes}.'
|
72
|
+
other: 'Участь обмежується лише учасниками з поштовими кодами %{postal_codes}.'
|
72
73
|
id_documents:
|
73
74
|
admin:
|
74
75
|
confirmations:
|
@@ -0,0 +1 @@
|
|
1
|
+
vi:
|
@@ -0,0 +1 @@
|
|
1
|
+
vi:
|
@@ -0,0 +1,257 @@
|
|
1
|
+
zh-CN:
|
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
|
+
user: 参与者
|
16
|
+
verification_attachment: 已扫描的文档副本
|
17
|
+
offline_confirmation:
|
18
|
+
email: 参与者电子邮件
|
19
|
+
postal_letter_address:
|
20
|
+
full_address: 完整地址
|
21
|
+
postal_letter_confirmation:
|
22
|
+
verification_code: 验证码
|
23
|
+
postal_letter_postage:
|
24
|
+
full_address: 完整地址
|
25
|
+
verification_code: 验证码
|
26
|
+
decidim:
|
27
|
+
admin:
|
28
|
+
menu:
|
29
|
+
authorization_revocation:
|
30
|
+
before_date_info: 如果进程已经开始并且你想要撤销上一个进程的权限,将非常有用。
|
31
|
+
button: 全部取消
|
32
|
+
button_before: 取消之前的日期
|
33
|
+
destroy:
|
34
|
+
confirm: 在日期前撤销授权无法撤销。您确定要继续吗?
|
35
|
+
confirm_all: 撤销所有授权无法撤销。您确定要继续吗?
|
36
|
+
destroy_nok: 撤销授权时出现问题。
|
37
|
+
destroy_ok: 所有匹配的授权已成功取消!
|
38
|
+
info: 共有 %{count} 个已验证的参与者。
|
39
|
+
no_data: 没有经过验证的参与者
|
40
|
+
title: 验证已取消
|
41
|
+
authorization_workflows: 验证
|
42
|
+
admin_log:
|
43
|
+
organization:
|
44
|
+
update_id_documents_config: "%{user_name} 更新了身份文档验证配置"
|
45
|
+
user:
|
46
|
+
grant_id_documents_offline_verification: "%{user_name} 使用离线身份证件验证了 %{resource_name}"
|
47
|
+
authorization_handlers:
|
48
|
+
admin:
|
49
|
+
csv_census:
|
50
|
+
help:
|
51
|
+
- 管理员通过接受的电子邮件上传CSV
|
52
|
+
- 只有那个CSV文件中有电子邮件的参与者才能获得验证
|
53
|
+
id_documents:
|
54
|
+
help:
|
55
|
+
- 用户填写其身份资料并上载其文件副本。
|
56
|
+
- 您填写上传图片中的信息。
|
57
|
+
- 信息应匹配用户填写的任何信息。
|
58
|
+
- 如果您无法清楚地看到信息或无法获得验证, 您可以拒绝请求,用户将能够修复它。
|
59
|
+
postal_letter:
|
60
|
+
help:
|
61
|
+
- 参与者要求将验证码发送到他们的地址。
|
62
|
+
- 你用验证码将信件发送到他们的地址。
|
63
|
+
- 您将信件标记为已发送。
|
64
|
+
- 一旦您将信件标记为发送,参与者将能够引入代码并获得验证。
|
65
|
+
csv_census:
|
66
|
+
explanation: 通过该组织的普查获得验证
|
67
|
+
name: 本组织的人口普查情况
|
68
|
+
direct: 直线
|
69
|
+
help: 帮助
|
70
|
+
id_documents:
|
71
|
+
explanation: 上传您的身份证件,以便我们检查您的身份
|
72
|
+
name: 身份文件
|
73
|
+
multistep: 多步
|
74
|
+
name: 名称
|
75
|
+
postal_letter:
|
76
|
+
explanation: 我们将向您发送一封带有您必须输入的代码的邮件,我们才能验证您的地址
|
77
|
+
name: 邮寄代码
|
78
|
+
verifications:
|
79
|
+
authorizations:
|
80
|
+
authorization_metadata:
|
81
|
+
info: '这是当前测试的数据:'
|
82
|
+
no_data_stored: 没有存储数据。
|
83
|
+
create:
|
84
|
+
error: 创建授权时出现问题。
|
85
|
+
success: 您已成功授权。
|
86
|
+
unconfirmed: 您需要确认您的电子邮件才能授权自己。
|
87
|
+
destroy:
|
88
|
+
error: 删除授权时出错。
|
89
|
+
success: 您已成功删除授权。
|
90
|
+
first_login:
|
91
|
+
actions:
|
92
|
+
another_dummy_authorization_handler: 验证另一个验证处理程序
|
93
|
+
csv_census: 核查该组织的人口普查情况
|
94
|
+
dummy_authorization_handler: 对照示例授权处理程序验证
|
95
|
+
dummy_authorization_workflow: 对照示例授权工作流程验证
|
96
|
+
id_documents: 通过上传您的身份证件获得验证
|
97
|
+
postal_letter: 通过邮件接收验证码
|
98
|
+
sms: 通过接收短信验证码获得验证
|
99
|
+
title: 验证您的身份
|
100
|
+
verify_with_these_options: '以下是验证您身份的可用选项:'
|
101
|
+
index:
|
102
|
+
expired_verification: 验证已过期
|
103
|
+
pending_verification: 待验证
|
104
|
+
show_renew_info: 点击以更新验证
|
105
|
+
unauthorized_verification: 新的验证
|
106
|
+
new:
|
107
|
+
authorize: 发送
|
108
|
+
authorize_with: 使用 %{authorizer} 验证
|
109
|
+
renew_modal:
|
110
|
+
cancel: 取消
|
111
|
+
close: 关闭
|
112
|
+
continue: 继续
|
113
|
+
info_renew: 如果您想要更新数据,请继续更新
|
114
|
+
title: 更新验证
|
115
|
+
skip_verification: 您现在可以跳过它, %{link}
|
116
|
+
start_exploring: 开始探索中
|
117
|
+
csv_census:
|
118
|
+
admin:
|
119
|
+
census:
|
120
|
+
create:
|
121
|
+
error: 导入普查时出错。
|
122
|
+
success: 成功导入 %{count} 个项目 (%{errors} 个错误)
|
123
|
+
destroy_all:
|
124
|
+
success: 所有普查数据已被删除
|
125
|
+
destroy:
|
126
|
+
confirm: 删除所有普查无法撤消。您确定要继续吗?
|
127
|
+
title: 删除所有普查数据
|
128
|
+
index:
|
129
|
+
data: 总共载入了 %{count} 条记录。最后上传日期在 %{due_date}
|
130
|
+
empty: 没有普查数据。使用下面的表单导入CSV文件。
|
131
|
+
title: 目前的普查数据
|
132
|
+
instructions:
|
133
|
+
body: 要做到这一点,您必须输入系统管理并将csv_census授权添加到组织
|
134
|
+
title: 您需要激活此组织的 csv 调查
|
135
|
+
new:
|
136
|
+
file: "带有电子邮件数据的.csv 文件"
|
137
|
+
info: '必须是 CSV 格式的文件,其中只有一个列有电子邮件地址:'
|
138
|
+
submit: 上传文件
|
139
|
+
title: 上传新的调查
|
140
|
+
authorizations:
|
141
|
+
new:
|
142
|
+
error: 我们无法验证您的帐户或您不在组织的普查中。
|
143
|
+
success: 您的帐户已成功验证。
|
144
|
+
dummy_authorization:
|
145
|
+
extra_explanation:
|
146
|
+
scope: 仅限范围为 %{scope_name} 的参与者。
|
147
|
+
id_documents:
|
148
|
+
admin:
|
149
|
+
config:
|
150
|
+
edit:
|
151
|
+
title: 身份文档配置
|
152
|
+
update: 更新
|
153
|
+
update:
|
154
|
+
error: 更新配置时出现问题。
|
155
|
+
success: 配置已成功更新
|
156
|
+
confirmations:
|
157
|
+
create:
|
158
|
+
error: 验证不匹配。请重试或拒绝验证,以便参与者可以修改
|
159
|
+
success: 参与者已成功验证
|
160
|
+
new:
|
161
|
+
introduce_user_data: 在图片中介绍数据
|
162
|
+
reject: 拒绝
|
163
|
+
verify: 验证
|
164
|
+
offline_confirmations:
|
165
|
+
create:
|
166
|
+
error: 验证不匹配。请重试或告诉参与者修改
|
167
|
+
success: 参与者已成功验证
|
168
|
+
new:
|
169
|
+
cancel: 取消
|
170
|
+
introduce_user_data: 介绍参与者电子邮件和文档数据
|
171
|
+
verify: 验证
|
172
|
+
pending_authorizations:
|
173
|
+
index:
|
174
|
+
config: 配置
|
175
|
+
offline_verification: 离线验证
|
176
|
+
title: 待定在线验证
|
177
|
+
verification_number: '验证 #%{n}'
|
178
|
+
rejections:
|
179
|
+
create:
|
180
|
+
success: 验证被拒绝。参与者将被提示修改她的文档
|
181
|
+
authorizations:
|
182
|
+
choose:
|
183
|
+
choose_a_type: '请选择您想要验证的方式:'
|
184
|
+
offline: 离线的
|
185
|
+
online: 在线
|
186
|
+
title: 使用您的身份证件验证自己
|
187
|
+
create:
|
188
|
+
error: 上传您的文档时出现问题
|
189
|
+
success: 文档上传成功
|
190
|
+
edit:
|
191
|
+
being_reviewed: 我们正在审查您的文档。您将很快被验证
|
192
|
+
offline: 使用离线验证
|
193
|
+
online: 使用在线验证
|
194
|
+
rejection_clarity: 请确保上传图像中的信息清晰可见。
|
195
|
+
rejection_correctness: 请确保输入的信息正确
|
196
|
+
rejection_notice: 您的验证有问题。请再试一次
|
197
|
+
send: 再次请求验证
|
198
|
+
new:
|
199
|
+
send: 请求验证
|
200
|
+
title: 上传您的身份文档
|
201
|
+
update:
|
202
|
+
error: 重新上传您的文档时出现问题
|
203
|
+
success: 文档已成功重新上传
|
204
|
+
dni: DNI
|
205
|
+
nie: NIE
|
206
|
+
passport: 护照:
|
207
|
+
postal_letter:
|
208
|
+
admin:
|
209
|
+
pending_authorizations:
|
210
|
+
index:
|
211
|
+
address: 地址
|
212
|
+
letter_sent_at: 信件发送于
|
213
|
+
mark_as_sent: 标记为已发送
|
214
|
+
not_yet_sent: 尚未发送
|
215
|
+
title: 进行中的验证
|
216
|
+
username: 昵称
|
217
|
+
verification_code: 验证码
|
218
|
+
postages:
|
219
|
+
create:
|
220
|
+
error: 标记已发送信件时出错
|
221
|
+
success: 已成功标记为已发送
|
222
|
+
authorizations:
|
223
|
+
create:
|
224
|
+
error: 您的请求有问题
|
225
|
+
success: 谢谢!我们会向您的地址发送验证码
|
226
|
+
edit:
|
227
|
+
send: 确认
|
228
|
+
title: 介绍您收到的验证码
|
229
|
+
waiting_for_letter: 我们将很快向您的地址发送一封信并附上您的验证码
|
230
|
+
new:
|
231
|
+
send: 给我发信
|
232
|
+
title: 请求您的验证码
|
233
|
+
update:
|
234
|
+
error: 您的验证码与我们不匹配。请再次检查我们发送给您的信件
|
235
|
+
success: 恭喜您。您已成功验证
|
236
|
+
sms:
|
237
|
+
authorizations:
|
238
|
+
create:
|
239
|
+
error: 您的请求有问题
|
240
|
+
success: 谢谢!我们已经向您的手机发送短信。
|
241
|
+
destroy:
|
242
|
+
success: 验证码已成功重置。请重新输入您的电话号码。
|
243
|
+
edit:
|
244
|
+
confirm_destroy: 您确定要重置验证码吗?
|
245
|
+
destroy: 重置验证码
|
246
|
+
resend: 没有收到验证码?
|
247
|
+
send: 确认
|
248
|
+
title: 介绍您收到的验证码
|
249
|
+
new:
|
250
|
+
send: 给我发送短信
|
251
|
+
title: 请求您的验证码
|
252
|
+
update:
|
253
|
+
error: 您的验证码与我们不匹配。请再次检查我们发送给您的短信。
|
254
|
+
success: 恭喜您。您已成功验证。
|
255
|
+
errors:
|
256
|
+
messages:
|
257
|
+
uppercase_only_letters_numbers: 必须是所有大写并只包含字母和/或数字
|
@@ -0,0 +1 @@
|
|
1
|
+
zh-TW:
|
@@ -63,6 +63,18 @@ module Decidim
|
|
63
63
|
main_engine.send(:edit_authorization_path, redirect_params(redirect_url: redirect_url))
|
64
64
|
end
|
65
65
|
|
66
|
+
#
|
67
|
+
# In the case of renewable authorizations, route to renew an authorization
|
68
|
+
# process.
|
69
|
+
#
|
70
|
+
def renew_path(redirect_url: nil)
|
71
|
+
if manifest.type == "direct"
|
72
|
+
decidim_verifications.renew_authorizations_path(redirect_params(handler: name, redirect_url: redirect_url))
|
73
|
+
else
|
74
|
+
main_engine.send(:renew_authorization_path, redirect_params(redirect_url: redirect_url))
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
66
78
|
#
|
67
79
|
# Administrational entry point for the verification engine
|
68
80
|
#
|
@@ -10,7 +10,9 @@ module Decidim
|
|
10
10
|
paths["lib/tasks"] = nil
|
11
11
|
|
12
12
|
routes do
|
13
|
-
resource :authorization, only: [:new], as: :authorization
|
13
|
+
resource :authorization, only: [:new], as: :authorization do
|
14
|
+
get :renew, on: :collection
|
15
|
+
end
|
14
16
|
root to: "authorizations#new"
|
15
17
|
end
|
16
18
|
end
|
@@ -11,6 +11,8 @@ module Decidim
|
|
11
11
|
resources :authorizations, only: [:new, :create, :index] do
|
12
12
|
collection do
|
13
13
|
get :first_login
|
14
|
+
get :renew_modal
|
15
|
+
get :renew
|
14
16
|
end
|
15
17
|
end
|
16
18
|
|
@@ -18,6 +20,17 @@ module Decidim
|
|
18
20
|
mount manifest.engine, at: "/#{manifest.name}", as: "decidim_#{manifest.name}"
|
19
21
|
end
|
20
22
|
end
|
23
|
+
|
24
|
+
namespace :admin do
|
25
|
+
# Revocations - Two options: 1) Revoke all (without params) 2) Revoke before date (when date params exist)
|
26
|
+
post "verifications_before_date", to: "verifications#destroy_before_date", as: "verifications/destroy_before_date"
|
27
|
+
delete "verifications_all", to: "verifications#destroy_all", as: "verifications/destroy_all"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Initializer to include cells views paths
|
32
|
+
initializer "decidim_verifications.add_cells_view_paths" do
|
33
|
+
Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Verifications::Engine.root}/app/cells")
|
21
34
|
end
|
22
35
|
end
|
23
36
|
end
|