decidim-system 0.32.0 → 0.32.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 203c8b2c817d888f7b373215e20acda133069d3b1b3ec5665dc01356f3bbc486
4
- data.tar.gz: d4ab0fdf702bbeade7e62abc7608ac110215bc4ad976206980b0de05de53666c
3
+ metadata.gz: f9ae33ecda88690ad4383bca1b9420716aeee5265b2cac1448e018bca3dd059c
4
+ data.tar.gz: 264eec3f22dda2b2a43d6a4dd7bbc8c7f060e6d22b06c4d1dc0f7231f0d499cf
5
5
  SHA512:
6
- metadata.gz: df234ee8b16dc301cd86632c8d029268e4b29303f707f0da4ff8dabc5bcaa9ac026e4d078e4492a3c50b90f6e735ed733959ee3c68c404433c7b551fa0570ef4
7
- data.tar.gz: f0e9ba27c826ce30d67a04e503bafee096ba1cb8b1cf531fca7cf0bd59725b3fc4ca5a1474e35fc85b4cf855fef791afd658d598f6af7f5c0be6ceb99ecb08d9
6
+ metadata.gz: dd0717fbc38421d9f645b7f36463c800fe9bc72b20a3d830da4c8874d76069858526f3de6a84f77e56d92e40a05eba496c2595ba107dabfcc669e800825cd206
7
+ data.tar.gz: bc58324554dac11c6647714006ef0b78cb407416ed87634dcb1bf47cdf169bc23b290b611073556709fc90fed17302c2bf6f8eab2bb9df8924921deb5e5a6313
@@ -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?
@@ -41,6 +41,8 @@ ja:
41
41
  invalid: は無効な値です
42
42
  password:
43
43
  secret_key: このフィールドを保存するには、環境変数 SECRET_KEY_BASE を定義する必要があります
44
+ secondary_hosts:
45
+ invalid: は無効な値です
44
46
  decidim:
45
47
  system:
46
48
  actions:
@@ -3,7 +3,7 @@
3
3
  $LOAD_PATH.push File.expand_path("lib", __dir__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
- version = "0.32.0"
6
+ version = "0.32.1"
7
7
  s.version = version
8
8
  s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
9
9
  s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
@@ -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.32.0"
7
+ "0.32.1"
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.32.0
4
+ version: 0.32.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 0.32.0
34
+ version: 0.32.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 0.32.0
41
+ version: 0.32.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: devise
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -99,14 +99,14 @@ dependencies:
99
99
  requirements:
100
100
  - - '='
101
101
  - !ruby/object:Gem::Version
102
- version: 0.32.0
102
+ version: 0.32.1
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - '='
108
108
  - !ruby/object:Gem::Version
109
- version: 0.32.0
109
+ version: 0.32.1
110
110
  description: System administration to create new organization in an installation.
111
111
  email:
112
112
  - josepjaume@gmail.com