decidim-verifications 0.32.1 → 0.32.3

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/verifications/authorize_user.rb +5 -1
  3. data/app/commands/decidim/verifications/confirm_user_authorization.rb +31 -28
  4. data/app/commands/decidim/verifications/csv_census/confirm_census_authorization.rb +14 -5
  5. data/app/commands/decidim/verifications/perform_authorization_step.rb +3 -1
  6. data/app/controllers/concerns/decidim/verifications/admin/pending_authorization_loader.rb +2 -0
  7. data/app/controllers/decidim/verifications/application_controller.rb +2 -0
  8. data/app/controllers/decidim/verifications/authorizations_controller.rb +31 -3
  9. data/app/controllers/decidim/verifications/csv_census/admin/census_controller.rb +1 -1
  10. data/app/controllers/decidim/verifications/csv_census/authorizations_controller.rb +8 -1
  11. data/app/controllers/decidim/verifications/id_documents/admin/confirmations_controller.rb +6 -1
  12. data/app/controllers/decidim/verifications/id_documents/authorizations_controller.rb +4 -0
  13. data/app/controllers/decidim/verifications/postal_letter/authorizations_controller.rb +8 -1
  14. data/app/controllers/decidim/verifications/sms/authorizations_controller.rb +13 -1
  15. data/app/views/decidim/verifications/id_documents/authorizations/edit.html.erb +1 -1
  16. data/app/views/decidim/verifications/id_documents/authorizations/new.html.erb +1 -1
  17. data/config/locales/ca-IT.yml +5 -0
  18. data/config/locales/ca.yml +5 -0
  19. data/config/locales/de.yml +11 -3
  20. data/config/locales/en.yml +5 -0
  21. data/config/locales/es-MX.yml +5 -0
  22. data/config/locales/es-PY.yml +5 -0
  23. data/config/locales/es.yml +5 -0
  24. data/config/locales/eu.yml +30 -25
  25. data/config/locales/fi-plain.yml +5 -0
  26. data/config/locales/fi.yml +5 -0
  27. data/config/locales/fr-CA.yml +25 -0
  28. data/config/locales/fr.yml +25 -0
  29. data/config/locales/gl.yml +196 -9
  30. data/config/locales/ja.yml +5 -0
  31. data/config/locales/sk.yml +6 -0
  32. data/config/locales/sv.yml +12 -0
  33. data/decidim-verifications.gemspec +1 -1
  34. data/lib/decidim/verifications/version.rb +1 -1
  35. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c65bd0b3a32529f7d477ac9f7e2e062c1a7524ced6d5b886ec5c20fc76baa99
4
- data.tar.gz: c8e6adf204236424ca733d940739039ccce9ebe28325a3eccada56684bf7cc4b
3
+ metadata.gz: 459a7ed89a5d2383e50303da31ba1bf91cc7f6567315f03144faa22d9aa39bd2
4
+ data.tar.gz: 7b6d1503214ae01842225bac6fdf144c8c3b25229c89679ad981f24bcc234287
5
5
  SHA512:
6
- metadata.gz: fd342ada2c8571e62a69ad635f2ccd38a43ee43481c79a0f53a9714fd60e6c77bce118a881e3241455a5d1317d3a3998f875cd4665700fd00a60156211398bfe
7
- data.tar.gz: 5bde6161468ac15a609b551831142b274c61f4cb599e78551588aa963e1aa464fb38165d0d6ef2073db0f75d379e2f9e7c2e82709aaea898c1431b4696a3f294
6
+ metadata.gz: 87689bb0e05f680cc21e23e0d1b3dff4d8889b6556815d07b218b2e66878c240d9b8999de3658369fd788a9916e27ec53ab5d73dd32b317f3b471d139b159421
7
+ data.tar.gz: 197d41977d574df990da35b22339af4f823294e518a091e28329117c2bf013a288a2a2b154fdfa07dafa57f63978ccf192240c83b05ae696cd962afe545c7ed7
@@ -81,14 +81,18 @@ module Decidim
81
81
  end
82
82
 
83
83
  def create_verification_conflict
84
- authorization = Decidim::Authorization.find_by(unique_id: handler.unique_id)
84
+ # rubocop:disable Decidim/OrganizationScopedFinder -- user: @organization.users scopes the lookup to the current organization
85
+ authorization = Decidim::Authorization.where(user: @organization.users).find_by(unique_id: handler.unique_id)
86
+ # rubocop:enable Decidim/OrganizationScopedFinder
85
87
  return if authorization.blank?
86
88
 
89
+ # rubocop:disable Decidim/OrganizationScopedFinder -- users are scoped to the current organization by the authorization lookup above
87
90
  conflict = Decidim::Verifications::Conflict.find_or_initialize_by(
88
91
  current_user: handler.user,
89
92
  managed_user: authorization.user,
90
93
  unique_id: handler.unique_id
91
94
  )
95
+ # rubocop:enable Decidim/OrganizationScopedFinder
92
96
 
93
97
  conflict.update(times: conflict.times + 1)
94
98
 
@@ -4,36 +4,41 @@ module Decidim
4
4
  module Verifications
5
5
  # A command to confirm a previous partial authorization.
6
6
  class ConfirmUserAuthorization < Decidim::Command
7
- # Number of failed confirmation attempts before throttling.
8
- MAX_FAILED_ATTEMPTS = 2
9
-
10
7
  # Public: Initializes the command.
11
8
  #
12
9
  # authorization - An Authorization to be confirmed.
13
10
  # form - A form object with the verification data to confirm it.
14
- def initialize(authorization, form, session)
11
+ def initialize(authorization, form)
15
12
  @authorization = authorization
16
13
  @form = form
17
- @session = session
18
14
  end
19
15
 
20
16
  # Executes the command. Broadcasts these events:
21
17
  #
22
18
  # - :ok when everything is valid.
23
19
  # - :invalid if the handler was not valid and we could not proceed.
20
+ # - :locked if too many failed attempts and the authorization is locked.
21
+ # - :expired if the verification code has expired.
24
22
  #
25
23
  # Returns nothing.
26
24
  def call
27
25
  return already_confirmed! if authorization.granted?
28
26
 
29
- return invalid! unless form.valid?
27
+ Decidim::Authorization.transaction do
28
+ authorization.lock!
29
+ authorization.clear_expired_lock!
30
+
31
+ return locked! if authorization.locked_for_confirmation?
32
+
33
+ return invalid! unless form.valid?
30
34
 
31
- throttle! if too_many_failed_attempts?
35
+ return expired! if code_expired?
32
36
 
33
- if confirmation_successful?
34
- valid!
35
- else
36
- invalid!
37
+ if confirmation_successful?
38
+ valid!
39
+ else
40
+ invalid!
41
+ end
37
42
  end
38
43
  rescue StandardError => e
39
44
  invalid!(e.message)
@@ -51,41 +56,39 @@ module Decidim
51
56
 
52
57
  def valid!
53
58
  authorization.grant!
54
- reset_failed_attempts!
59
+ authorization.reset_failed_attempts!
55
60
  broadcast(:ok)
56
61
  end
57
62
 
58
63
  def invalid!(message = nil)
59
- record_failed_attempt!
64
+ authorization.record_failed_attempt!
60
65
  broadcast(:invalid, message)
61
66
  end
62
67
 
63
68
  def already_confirmed!
64
- reset_failed_attempts!
69
+ authorization.reset_failed_attempts!
65
70
  broadcast(:already_confirmed)
66
71
  end
67
72
 
68
- def too_many_failed_attempts?
69
- failed_attempts > MAX_FAILED_ATTEMPTS
73
+ def locked!
74
+ broadcast(:locked)
70
75
  end
71
76
 
72
- def failed_attempts
73
- session[:failed_attempts] ||= 0
74
- end
75
-
76
- def reset_failed_attempts!
77
- session[:failed_attempts] = 0
78
- end
77
+ def code_expired?
78
+ sent_at = authorization.verification_metadata["code_sent_at"]
79
+ return false unless sent_at
79
80
 
80
- def record_failed_attempt!
81
- session[:failed_attempts] = failed_attempts + 1
81
+ sent_at = Time.zone.parse(sent_at.to_s) if sent_at.is_a?(String)
82
+ sent_at < Decidim.verification_code_expiry_minutes.minutes.ago
82
83
  end
83
84
 
84
- def throttle!
85
- sleep rand * failed_attempts
85
+ def expired!
86
+ authorization.update!(verification_metadata: {})
87
+ authorization.reset_failed_attempts!
88
+ broadcast(:expired)
86
89
  end
87
90
 
88
- attr_reader :authorization, :form, :session
91
+ attr_reader :authorization, :form
89
92
  end
90
93
  end
91
94
  end
@@ -7,11 +7,20 @@ module Decidim
7
7
  def call
8
8
  return broadcast(:invalid) unless form.valid?
9
9
 
10
- if confirmation_successful?
11
- authorization.grant!
12
- broadcast(:ok)
13
- else
14
- broadcast(:invalid)
10
+ Decidim::Authorization.transaction do
11
+ authorization.lock!
12
+ authorization.clear_expired_lock!
13
+
14
+ return broadcast(:locked) if authorization.locked_for_confirmation?
15
+
16
+ if confirmation_successful?
17
+ authorization.grant!
18
+ authorization.reset_failed_attempts!
19
+ broadcast(:ok)
20
+ else
21
+ authorization.record_failed_attempt!
22
+ broadcast(:invalid)
23
+ end
15
24
  end
16
25
  end
17
26
  end
@@ -34,7 +34,9 @@ module Decidim
34
34
  unique_id: handler.unique_id,
35
35
  metadata: handler.metadata,
36
36
  verification_metadata: handler.verification_metadata,
37
- verification_attachment: handler.verification_attachment
37
+ verification_attachment: handler.verification_attachment,
38
+ failed_attempts: 0,
39
+ locked_at: nil
38
40
  }
39
41
 
40
42
  authorization.save!
@@ -9,6 +9,8 @@ module Decidim
9
9
  extend ActiveSupport::Concern
10
10
 
11
11
  included do
12
+ protected
13
+
12
14
  def load_pending_authorization!(name, pending_authorization_id)
13
15
  Authorizations.new(organization: current_organization, name:, granted: false)
14
16
  .query
@@ -10,6 +10,8 @@ module Decidim
10
10
 
11
11
  before_action :confirmed_user, only: [:new, :create, :renew]
12
12
 
13
+ protected
14
+
13
15
  def new
14
16
  raise NotImplementedError
15
17
  end
@@ -21,11 +21,17 @@ module Decidim
21
21
 
22
22
  layout "layouts/decidim/authorizations", except: [:index, :onboarding_pending]
23
23
 
24
- def new; end
24
+ def new
25
+ enforce_permission_to :read, :authorization
26
+ end
25
27
 
26
- def index; end
28
+ def index
29
+ enforce_permission_to :read, :authorization
30
+ end
27
31
 
28
32
  def onboarding_pending
33
+ enforce_permission_to :read, :authorization
34
+
29
35
  return redirect_back_or_to(authorizations_path) unless onboarding_manager.valid?
30
36
 
31
37
  authorizations = action_authorized_to(onboarding_manager.action, **onboarding_manager.action_authorized_resources)
@@ -56,6 +62,8 @@ module Decidim
56
62
  end
57
63
 
58
64
  def create
65
+ enforce_permission_to(:create, :authorization, authorization:)
66
+
59
67
  AuthorizeUser.call(handler, current_organization) do
60
68
  on(:ok) do
61
69
  flash[:notice] = t("authorizations.create.success", scope: "decidim.verifications")
@@ -78,6 +86,7 @@ module Decidim
78
86
  end
79
87
 
80
88
  on(:transfer_user) do |authorized_user|
89
+ transfer_onboarding_action(current_user, authorized_user)
81
90
  authorized_user.update(last_sign_in_at: Time.current, deleted_at: nil)
82
91
  sign_out(current_user)
83
92
  sign_in(authorized_user)
@@ -93,12 +102,16 @@ module Decidim
93
102
  end
94
103
 
95
104
  def renew_onboarding_data
105
+ enforce_permission_to :read, :authorization
106
+
96
107
  store_onboarding_cookie_data!(current_user)
97
108
 
98
109
  redirect_to onboarding_pending_authorizations_path
99
110
  end
100
111
 
101
112
  def clear_onboarding_data
113
+ enforce_permission_to :read, :authorization
114
+
102
115
  clear_onboarding_data!(current_user)
103
116
  end
104
117
 
@@ -186,11 +199,26 @@ module Decidim
186
199
 
187
200
  private
188
201
 
202
+ # Preserves the pending onboarding action of the transferring session on
203
+ # the user that takes over it, so the onboarding flow resumes the action
204
+ # the visitor was trying to complete (e.g. voting a budget) instead of the
205
+ # transferred user's stale action (e.g. a survey already answered).
206
+ def transfer_onboarding_action(from_user, to_user)
207
+ pending_action = from_user.extended_data[Decidim::OnboardingManager::DATA_KEY]
208
+ return if pending_action.blank?
209
+
210
+ to_user.update(
211
+ extended_data: to_user.extended_data.merge(Decidim::OnboardingManager::DATA_KEY => pending_action)
212
+ )
213
+ end
214
+
189
215
  def authorization
190
- @authorization ||= Decidim::Authorization.find_by(
216
+ # rubocop:disable Decidim/OrganizationScopedFinder -- user is current_user, scoped to current_organization
217
+ @authorization ||= Decidim::Authorization.find_or_initialize_by(
191
218
  user: current_user,
192
219
  name: handler_name
193
220
  )
221
+ # rubocop:enable Decidim/OrganizationScopedFinder
194
222
  end
195
223
  end
196
224
  end
@@ -96,7 +96,7 @@ module Decidim
96
96
 
97
97
  return { icon: nil, text: t(".no_user"), last_sign_in: nil } unless user
98
98
 
99
- authorized = Decidim::Authorization.where(name: "csv_census", user:)
99
+ authorized = Decidim::Authorization.where(name: "csv_census", user:) # rubocop:disable Decidim/OrganizationScopedFinder -- user is already scoped to current_organization (line 95)
100
100
  .where.not(granted_at: nil)
101
101
  .exists?
102
102
 
@@ -11,14 +11,19 @@ module Decidim
11
11
  before_action :load_authorization
12
12
 
13
13
  def new
14
+ enforce_permission_to :create, :authorization, authorization: @authorization
15
+
14
16
  @form = CensusForm.from_params(user: current_user)
15
- ConfirmCensusAuthorization.call(@authorization, @form, session) do
17
+ ConfirmCensusAuthorization.call(@authorization, @form) do
16
18
  on(:ok) do
17
19
  flash[:notice] = t("authorizations.new.success", scope: "decidim.verifications.csv_census")
18
20
  end
19
21
  on(:invalid) do
20
22
  flash[:alert] = t("authorizations.new.error", scope: "decidim.verifications.csv_census")
21
23
  end
24
+ on(:locked) do
25
+ flash[:alert] = t("authorizations.new.locked", scope: "decidim.verifications.csv_census")
26
+ end
22
27
  redirect_to decidim_verifications.authorizations_path
23
28
  end
24
29
  end
@@ -30,10 +35,12 @@ module Decidim
30
35
  end
31
36
 
32
37
  def load_authorization
38
+ # rubocop:disable Decidim/OrganizationScopedFinder -- user is current_user, scoped to current_organization
33
39
  @authorization = Decidim::Authorization.find_or_initialize_by(
34
40
  user: current_user,
35
41
  name: "csv_census"
36
42
  )
43
+ # rubocop:enable Decidim/OrganizationScopedFinder
37
44
  end
38
45
  end
39
46
  end
@@ -28,7 +28,7 @@ module Decidim
28
28
 
29
29
  @form = InformationForm.from_params(params)
30
30
 
31
- ConfirmUserAuthorization.call(@pending_authorization, @form, session) do
31
+ ConfirmUserAuthorization.call(@pending_authorization, @form) do
32
32
  on(:ok) do
33
33
  flash[:notice] = t("confirmations.create.success", scope: "decidim.verifications.id_documents.admin")
34
34
  redirect_to pending_authorizations_path
@@ -38,6 +38,11 @@ module Decidim
38
38
  flash.now[:alert] = t("confirmations.create.error", scope: "decidim.verifications.id_documents.admin")
39
39
  render action: :new, status: :unprocessable_content
40
40
  end
41
+
42
+ on(:locked) do
43
+ flash.now[:alert] = t("confirmations.create.locked", scope: "decidim.verifications.id_documents.admin")
44
+ render action: :new, status: :too_many_requests
45
+ end
41
46
  end
42
47
  end
43
48
 
@@ -14,6 +14,8 @@ module Decidim
14
14
  before_action :load_authorization
15
15
 
16
16
  def choose
17
+ enforce_permission_to :create, :authorization, authorization: @authorization
18
+
17
19
  url_params = { redirect_url: }.compact
18
20
 
19
21
  return redirect_to(action: :new, **url_params.merge(using: verification_type)) if available_methods.count == 1
@@ -84,10 +86,12 @@ module Decidim
84
86
  end
85
87
 
86
88
  def load_authorization
89
+ # rubocop:disable Decidim/OrganizationScopedFinder -- user is current_user, scoped to current_organization
87
90
  @authorization = Decidim::Authorization.find_or_initialize_by(
88
91
  user: current_user,
89
92
  name: "id_documents"
90
93
  )
94
+ # rubocop:enable Decidim/OrganizationScopedFinder
91
95
  end
92
96
 
93
97
  def verification_type
@@ -45,7 +45,7 @@ module Decidim
45
45
 
46
46
  @form = ConfirmationForm.from_params(params)
47
47
 
48
- ConfirmUserAuthorization.call(@authorization, @form, session) do
48
+ ConfirmUserAuthorization.call(@authorization, @form) do
49
49
  on(:ok) do
50
50
  flash[:notice] = t("authorizations.update.success", scope: "decidim.verifications.postal_letter")
51
51
  redirect_to decidim_verifications.authorizations_path
@@ -55,6 +55,11 @@ module Decidim
55
55
  flash.now[:alert] = t("authorizations.update.error", scope: "decidim.verifications.postal_letter")
56
56
  render :edit, status: :unprocessable_content
57
57
  end
58
+
59
+ on(:locked) do
60
+ flash.now[:alert] = t("authorizations.update.locked", scope: "decidim.verifications.postal_letter")
61
+ render :edit, status: :too_many_requests
62
+ end
58
63
  end
59
64
  end
60
65
 
@@ -65,10 +70,12 @@ module Decidim
65
70
  end
66
71
 
67
72
  def load_authorization
73
+ # rubocop:disable Decidim/OrganizationScopedFinder -- user is current_user, scoped to current_organization
68
74
  @authorization = Decidim::Authorization.find_or_initialize_by(
69
75
  user: current_user,
70
76
  name: "postal_letter"
71
77
  )
78
+ # rubocop:enable Decidim/OrganizationScopedFinder
72
79
  end
73
80
  end
74
81
  end
@@ -43,7 +43,7 @@ module Decidim
43
43
 
44
44
  @form = ConfirmationForm.from_params(params)
45
45
 
46
- ConfirmUserAuthorization.call(authorization, @form, session) do
46
+ ConfirmUserAuthorization.call(authorization, @form) do
47
47
  on(:ok) do
48
48
  flash[:notice] = t("authorizations.update.success", scope: "decidim.verifications.sms")
49
49
 
@@ -54,6 +54,16 @@ module Decidim
54
54
  flash.now[:alert] = t("authorizations.update.error", scope: "decidim.verifications.sms")
55
55
  render :edit, status: :unprocessable_content
56
56
  end
57
+
58
+ on(:locked) do
59
+ flash.now[:alert] = t("authorizations.update.locked", scope: "decidim.verifications.sms")
60
+ render :edit, status: :too_many_requests
61
+ end
62
+
63
+ on(:expired) do
64
+ flash[:alert] = t("authorizations.update.expired", scope: "decidim.verifications.sms")
65
+ redirect_to redirect_url || decidim_verifications.authorizations_path
66
+ end
57
67
  end
58
68
  end
59
69
 
@@ -69,10 +79,12 @@ module Decidim
69
79
  private
70
80
 
71
81
  def authorization
82
+ # rubocop:disable Decidim/OrganizationScopedFinder -- user is current_user, scoped to current_organization
72
83
  @authorization ||= Decidim::Authorization.find_or_initialize_by(
73
84
  user: current_user,
74
85
  name: "sms"
75
86
  )
87
+ # rubocop:enable Decidim/OrganizationScopedFinder
76
88
  end
77
89
  end
78
90
  end
@@ -10,7 +10,7 @@
10
10
 
11
11
  <% unless using_online? %>
12
12
  <div class="mb-12">
13
- <%= translated_attribute(current_organization.id_documents_explanation_text).html_safe %>
13
+ <%= decidim_sanitize_editor_admin(translated_attribute(current_organization.id_documents_explanation_text)) %>
14
14
  </div>
15
15
  <% end %>
16
16
 
@@ -4,7 +4,7 @@
4
4
  </h1>
5
5
  </div>
6
6
 
7
- <%= translated_attribute(current_organization.id_documents_explanation_text).html_safe unless using_online? %>
7
+ <%= decidim_sanitize_editor_admin(translated_attribute(current_organization.id_documents_explanation_text)) unless using_online? %>
8
8
 
9
9
  <%= decidim_form_for(@form, url: authorization_path) do |form| %>
10
10
  <%= render partial: "form", locals: { form: } %>
@@ -228,6 +228,7 @@ ca-IT:
228
228
  authorizations:
229
229
  new:
230
230
  error: No hem pogut verificar el teu compte o no estàs al cens de l'organització.
231
+ locked: Massa intents fallits. Si us plau, torna a provar-ho més tard.
231
232
  success: El teu compte s'ha verificat correctament.
232
233
  dummy_authorization:
233
234
  extra_explanation:
@@ -253,6 +254,7 @@ ca-IT:
253
254
  confirmations:
254
255
  create:
255
256
  error: La verificació no coincideix. Si us plau, torna-ho a provar o rebutja la verificació perquè la participant pugui modificar-la.
257
+ locked: Massa intents fallits. Si us plau, torna a provar-ho més tard.
256
258
  success: Participant convidada correctament.
257
259
  new:
258
260
  reject: Rebutjar
@@ -329,6 +331,7 @@ ca-IT:
329
331
  title: Sol·licita el teu codi de verificació
330
332
  update:
331
333
  error: El teu codi de verificació no coincideix amb el nostre. Si us plau, revisa la carta que t'hem enviat.
334
+ locked: Massa intents fallits. Si us plau, torna a provar-ho més tard.
332
335
  success: Felicitats. T'has verificat correctament.
333
336
  sms:
334
337
  authorizations:
@@ -348,6 +351,8 @@ ca-IT:
348
351
  title: Sol·licita el teu codi de verificació
349
352
  update:
350
353
  error: El codi de verificació que has introduït no coincideix amb el nostre. Si us plau, torna a revisar l'SMS que t'hem enviat.
354
+ expired: El codi de verificació ha caducat. Si us plau, demana'n un de nou.
355
+ locked: Massa intents fallits. Si us plau, torna a provar-ho més tard o demana un nou codi de verificació.
351
356
  success: Felicitats. T'has verificat correctament.
352
357
  errors:
353
358
  messages:
@@ -228,6 +228,7 @@ ca:
228
228
  authorizations:
229
229
  new:
230
230
  error: No hem pogut verificar el teu compte o no estàs al cens de l'organització.
231
+ locked: Massa intents fallits. Si us plau, torna a provar-ho més tard.
231
232
  success: El teu compte s'ha verificat correctament.
232
233
  dummy_authorization:
233
234
  extra_explanation:
@@ -253,6 +254,7 @@ ca:
253
254
  confirmations:
254
255
  create:
255
256
  error: La verificació no coincideix. Si us plau, torna-ho a provar o rebutja la verificació perquè la participant pugui modificar-la.
257
+ locked: Massa intents fallits. Si us plau, torna a provar-ho més tard.
256
258
  success: Participant convidada correctament.
257
259
  new:
258
260
  reject: Rebutjar
@@ -329,6 +331,7 @@ ca:
329
331
  title: Sol·licita el teu codi de verificació
330
332
  update:
331
333
  error: El teu codi de verificació no coincideix amb el nostre. Si us plau, revisa la carta que t'hem enviat.
334
+ locked: Massa intents fallits. Si us plau, torna a provar-ho més tard.
332
335
  success: Felicitats. T'has verificat correctament.
333
336
  sms:
334
337
  authorizations:
@@ -348,6 +351,8 @@ ca:
348
351
  title: Sol·licita el teu codi de verificació
349
352
  update:
350
353
  error: El codi de verificació que has introduït no coincideix amb el nostre. Si us plau, torna a revisar l'SMS que t'hem enviat.
354
+ expired: El codi de verificació ha caducat. Si us plau, demana'n un de nou.
355
+ locked: Massa intents fallits. Si us plau, torna a provar-ho més tard o demana un nou codi de verificació.
351
356
  success: Felicitats. T'has verificat correctament.
352
357
  errors:
353
358
  messages:
@@ -49,6 +49,7 @@ de:
49
49
  confirm: Das Entziehen aller Berechtigungen vor einem Datum kann nicht rückgängig gemacht werden. Sind Sie sicher, dass Sie fortfahren möchten?
50
50
  confirm_all: Das Entziehen aller Berechtigungen nicht rückgängig gemacht werden. Sind Sie sicher, dass Sie fortfahren möchten?
51
51
  destroy_nok: Beim Entziehen der Berechtigungen ist ein Fehler aufgetreten.
52
+ destroy_ok: Der Widerruf der Verifizierungen läuft. Dies kann einige Minuten in Anspruch nehmen.
52
53
  info: Es gibt insgesamt %{count} verifizierte Teilnehmer.
53
54
  no_data: Keine verifizierten Teilnehmer.
54
55
  title: Berechtigungen widerrufen
@@ -151,7 +152,7 @@ de:
151
152
  new:
152
153
  authorize: Senden
153
154
  authorize_with: Bestätigen Sie mit %{authorizer}
154
- tos_agreement: Durch die Überprüfung Ihrer Identität akzeptieren Sie %{link}.
155
+ tos_agreement: Durch die Überprüfung Ihrer Identität erklären Sie sich einverstanden mit den %{link}.
155
156
  onboarding_pending:
156
157
  completed_verifications: Sie wurden erfolgreich autorisiert, jetzt können Sie %{action} auf %{resource_name}
157
158
  granted_verifications: Verifizierung erfolgeich
@@ -164,8 +165,8 @@ de:
164
165
  continue: Weiter
165
166
  info_renew: Wenn Sie die Daten aktualisieren möchten, fahren Sie mit der Erneuerung fort.
166
167
  title: Verifizierung erneuern
167
- skip_verification: Sie können dies für jetzt und %{link}überspringen
168
- start_exploring: Fang an zu erforschen
168
+ skip_verification: Sie können dies vorübergehend überspringen und %{link}
169
+ start_exploring: mit der Erkundung beginnen
169
170
  csv_census:
170
171
  admin:
171
172
  actions:
@@ -183,6 +184,10 @@ de:
183
184
  empty: Es gibt keine Volkszählungsdaten. Verwenden Sie %{import_csv} um eine CSV-Datei zu importieren.
184
185
  no_sign_in: Nie angemeldet
185
186
  no_user: Kein Mitglied gefunden
187
+ title: Aktuelle Zählungsdaten
188
+ instructions:
189
+ body: Öffnen Sie dazu die Systemverwaltung und fügen Sie der Organisation die Verifizierung "csv_census" hinzu
190
+ title: Sie müssen die CSV-Zählung für diese Organisation aktivieren
186
191
  last_login:
187
192
  no_sign_in: Nie angemeldet
188
193
  no_user: Kein Mitglied
@@ -251,6 +256,7 @@ de:
251
256
  success: Teilnehmer erfolgreich überprüft.
252
257
  new:
253
258
  reject: Ablehnen
259
+ title: Geben Sie die Daten aus dem Bild ein
254
260
  verify: Überprüfen
255
261
  offline_confirmations:
256
262
  create:
@@ -258,6 +264,7 @@ de:
258
264
  success: Benutzer erfolgreich überprüft.
259
265
  new:
260
266
  cancel: Abbrechen
267
+ title: Geben Sie die E-Mail-Adresse der teilnehmenden Person sowie die Dokumentdaten ein
261
268
  verify: Überprüfen
262
269
  pending_authorizations:
263
270
  index:
@@ -298,6 +305,7 @@ de:
298
305
  pending_authorizations:
299
306
  index:
300
307
  address: Adresse
308
+ already_sent: Der Brief wurde bereits versendet und kann nicht erneut als versendet markiert werden.
301
309
  letter_sent_at: Brief an gesendet
302
310
  mark_as_sent: Als gesendet markieren
303
311
  not_yet_sent: Noch nicht gesendet
@@ -228,6 +228,7 @@ en:
228
228
  authorizations:
229
229
  new:
230
230
  error: We could not verify your account or you are not in the organization's census.
231
+ locked: Too many failed attempts. Please try again later.
231
232
  success: Your account has been successfully verified.
232
233
  dummy_authorization:
233
234
  extra_explanation:
@@ -253,6 +254,7 @@ en:
253
254
  confirmations:
254
255
  create:
255
256
  error: Verification does not match. Please try again or reject the verification so the participant can amend it.
257
+ locked: Too many failed attempts. Please try again later.
256
258
  success: Participant successfully verified.
257
259
  new:
258
260
  reject: Reject
@@ -329,6 +331,7 @@ en:
329
331
  title: Request your verification code
330
332
  update:
331
333
  error: Your verification code does not match ours. Please double-check the letter we sent to you.
334
+ locked: Too many failed attempts. Please try again later.
332
335
  success: Congratulations. You have been successfully verified.
333
336
  sms:
334
337
  authorizations:
@@ -348,6 +351,8 @@ en:
348
351
  title: Request your verification code
349
352
  update:
350
353
  error: Your verification code does not match ours. Please double-check the SMS we sent you.
354
+ expired: The verification code has expired. Please request a new one.
355
+ locked: Too many failed attempts. Please try again later or request a new code.
351
356
  success: Congratulations. You have been successfully verified.
352
357
  errors:
353
358
  messages:
@@ -228,6 +228,7 @@ es-MX:
228
228
  authorizations:
229
229
  new:
230
230
  error: No pudimos verificar su cuenta o usted no está en el censo de la organización.
231
+ locked: Demasiados intentos fallidos. Por favor, inténtalo de nuevo más tarde.
231
232
  success: Su cuenta ha sido verificada con éxito.
232
233
  dummy_authorization:
233
234
  extra_explanation:
@@ -253,6 +254,7 @@ es-MX:
253
254
  confirmations:
254
255
  create:
255
256
  error: La verificación no coincide. Por favor inténtalo de nuevo o rechaza la verificación para que la participante pueda modificarla.
257
+ locked: Demasiados intentos fallidos. Por favor, inténtalo de nuevo más tarde.
256
258
  success: Participante verificada correctamente.
257
259
  new:
258
260
  reject: Rechazar
@@ -329,6 +331,7 @@ es-MX:
329
331
  title: Solicita tu código de verificación
330
332
  update:
331
333
  error: Tu código de verificación no coincide con el nuestro. Por favor, revisa la carta que te enviamos.
334
+ locked: Demasiados intentos fallidos. Por favor, inténtalo de nuevo más tarde.
332
335
  success: Felicidades. Te has verificado con éxito.
333
336
  sms:
334
337
  authorizations:
@@ -348,6 +351,8 @@ es-MX:
348
351
  title: Solicita tu código de verificación
349
352
  update:
350
353
  error: El código de verificación no coincide con el nuestro. Por favor, vuelve a revisar el SMS que te enviamos.
354
+ expired: El código de verificación ha caducado. Por favor, pide uno nuevo.
355
+ locked: Demasiados intentos fallidos. Inténtalo de nuevo más tarde o pide un código de verificación nuevo.
351
356
  success: Felicidades. Te has verificado con éxito.
352
357
  errors:
353
358
  messages: