decidim-system 0.31.6 → 0.31.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 506a85519df41755028e713aaef1a213f0518f5df0db462e462d6600f6c43097
4
- data.tar.gz: 752ab5cc415f1b95668764e7e8f4ca2f997c681dc5727b92af80613a9b34c078
3
+ metadata.gz: 386703c31b98e239e2acbd654a02757adf735c3a369ed0e2e52bb0446f386fa1
4
+ data.tar.gz: 631ac70d60039726a10909b1e4d8643429f4e2dfc00ffdb250e966d154a443a4
5
5
  SHA512:
6
- metadata.gz: fc672f5373ffafe521feef2b421a5aeb0efb35d90844d85361979a0815ae1811fdc86590f211cf48fd333e3297102375911c1bcf6f3ee09bd5b2a5e51b917b92
7
- data.tar.gz: 1e43864af079758b6fff9f7747856c9796ab85c7160df606a6e4800991f84b56a0bbe436b15c4a44474c34f682fb2f4f5e298555f9ae383e505007c76a917021
6
+ metadata.gz: 0bb3cf2c85320c16f1473e1ccb80827e436760342da293bc65cf6360708f857f3cd00688c4d4710f9e36168fd7fc3d7d17db65638cc61f7504d4c228bc0f8e72
7
+ data.tar.gz: 99aabce4ecec1bdff23b39999f64b7871dc4be33cbe631e13a1eb798dedfce9ee50fe676ea6f2a7223527a5c5afa99e0a81dc90332f3d59fba8d452949a00261
@@ -12,8 +12,9 @@ module Decidim
12
12
  attribute :password_confirmation, String
13
13
 
14
14
  validates :email, presence: true
15
- validates :password, confirmation: true, presence: true, unless: :admin_exists?
16
- validates :password_confirmation, presence: true, unless: :admin_exists?
15
+ validates :password, presence: true, unless: :admin_exists?
16
+ validates :password, confirmation: true, if: :password_present?
17
+ validates :password_confirmation, presence: true, if: :password_present?
17
18
 
18
19
  validates :password, password: { email: :email }
19
20
 
@@ -31,6 +32,10 @@ module Decidim
31
32
  def admin_exists?
32
33
  id.present?
33
34
  end
35
+
36
+ def password_present?
37
+ password.present? || password_confirmation.present?
38
+ end
34
39
  end
35
40
  end
36
41
  end
@@ -22,15 +22,14 @@
22
22
  </td>
23
23
  <td>
24
24
  <% if fresh_token?(api_user) %>
25
- <div data-controller="password-toggler" class="flex flex-row items-center gap-x-2">
26
- <div class="input-group__password">
27
- <input type="password" id="<%= "token_#{api_user.id}" %>" value="<%= @secret_user[:secret] %>" class="w-full" autocomplete="off">
28
- </div>
29
- <div class="basis-1/4"
30
- data-show-password="<%= t "api_user.show_secret", scope: "decidim.system.actions" %>"
31
- data-hide-password="<%= t "api_user.hide_secret", scope: "decidim.system.actions" %>"
32
- data-hidden-password="<%= t "api_user.hidden_secret", scope: "decidim.system.actions" %>"
33
- data-shown-password="<%= t "api_user.shown_secret", scope: "decidim.system.actions" %>">
25
+ <div data-controller="password-toggler"
26
+ class="flex flex-row items-center gap-x-2"
27
+ data-show-password="<%= t "api_user.show_secret", scope: "decidim.system.actions" %>"
28
+ data-hide-password="<%= t "api_user.hide_secret", scope: "decidim.system.actions" %>"
29
+ data-hidden-password="<%= t "api_user.hidden_secret", scope: "decidim.system.actions" %>"
30
+ data-shown-password="<%= t "api_user.shown_secret", scope: "decidim.system.actions" %>">
31
+ <input type="password" id="<%= "token_#{api_user.id}" %>" value="<%= @secret_user[:secret] %>" class="w-full" autocomplete="off">
32
+ <div class="basis-1/4">
34
33
  <button type="button"
35
34
  class="button button__sm button__text-primary"
36
35
  data-controller="clipboard-copy"
@@ -47,6 +47,7 @@ cs:
47
47
  system:
48
48
  actions:
49
49
  api_user:
50
+ hidden_secret: Tajný klíč je skrytý
50
51
  hide_secret: Skrýt tajný klíč
51
52
  secret_can_not_be_shown: API secret může být zobrazeno nebo zkopírováno pouze po vytvoření
52
53
  show_secret: Zobrazit tajný klíč
@@ -187,6 +188,7 @@ cs:
187
188
  explanation: Aplikace, které nemohou používat registrované zákaznické tajemství, jako jsou aplikace běžící v prohlížeči nebo na mobilním zařízení.
188
189
  name: Veřejné
189
190
  application_type_help_html: 'Typ OAuth klienta definovaný <a href="%{client_type_link}" target="_blank">RFC 6749 Oddíl 2.1</a>. Veřejní klienti musí realizovat tok PKCE definovaný <a href="%{pkce_link}" target="_blank">RFC 7636</a>. '
191
+ refresh_tokens_help_html: 'Aktualizovat tokeny je užitečné v případě, že token potřebuje delší životnost, než je přiděleno pro přístupový token. Všimněte si, že <strong>obnovovací tokeny by měly být používány pečlivě</strong>, protože mohou oslabit bezpečnost vašich uživatelů. '
190
192
  select_organization: Vybrat organizaci
191
193
  index:
192
194
  confirm_delete: Jste si jisti, že chcete odstranit tuto žádost?
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-system version.
5
5
  module System
6
6
  def self.version
7
- "0.31.6"
7
+ "0.31.7"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.6
4
+ version: 0.31.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2026-07-06 00:00:00.000000000 Z
13
+ date: 2026-07-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: active_link_to
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.31.6
35
+ version: 0.31.7
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.31.6
42
+ version: 0.31.7
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -94,14 +94,14 @@ dependencies:
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 0.31.6
97
+ version: 0.31.7
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: 0.31.6
104
+ version: 0.31.7
105
105
  description: System administration to create new organization in an installation.
106
106
  email:
107
107
  - josepjaume@gmail.com