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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9ae33ecda88690ad4383bca1b9420716aeee5265b2cac1448e018bca3dd059c
|
|
4
|
+
data.tar.gz: 264eec3f22dda2b2a43d6a4dd7bbc8c7f060e6d22b06c4d1dc0f7231f0d499cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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,
|
|
16
|
-
validates :
|
|
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"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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"
|
data/config/locales/cs.yml
CHANGED
|
@@ -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?
|
data/config/locales/ja.yml
CHANGED
data/decidim-system.gemspec
CHANGED
|
@@ -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.
|
|
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"]
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|