keycloakify 5.6.0 → 5.6.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.
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
### **5.6.1** (2022-07-03)
|
2
|
+
|
3
|
+
- Merge pull request #128 from Ann2827/pull
|
4
|
+
|
5
|
+
Fix bugs on error.ftl template
|
6
|
+
- fix: bugs on error.ftl template
|
7
|
+
- Merge pull request #52 from InseeFrLab/main
|
8
|
+
|
9
|
+
Update fork
|
10
|
+
|
1
11
|
## **5.6.0** (2022-06-28)
|
2
12
|
|
3
13
|
- Merge pull request #127 from aidangilmore/add-totp-support
|
@@ -30,6 +30,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
30
30
|
</#attempt>
|
31
31
|
|
32
32
|
"printIfExists": function (fieldName, x) {
|
33
|
+
<#if !messagesPerField?? >
|
34
|
+
return undefined;
|
35
|
+
</#if>
|
33
36
|
<#list fieldNames as fieldName>
|
34
37
|
if(fieldName === "${fieldName}" ){
|
35
38
|
<#attempt>
|
@@ -41,6 +44,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
41
44
|
throw new Error("There is no " + fieldName + " field");
|
42
45
|
},
|
43
46
|
"existsError": function (fieldName) {
|
47
|
+
<#if !messagesPerField?? >
|
48
|
+
return false;
|
49
|
+
</#if>
|
44
50
|
<#list fieldNames as fieldName>
|
45
51
|
if(fieldName === "${fieldName}" ){
|
46
52
|
<#attempt>
|
@@ -52,6 +58,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
52
58
|
throw new Error("There is no " + fieldName + " field");
|
53
59
|
},
|
54
60
|
"get": function (fieldName) {
|
61
|
+
<#if !messagesPerField?? >
|
62
|
+
return '';
|
63
|
+
</#if>
|
55
64
|
<#list fieldNames as fieldName>
|
56
65
|
if(fieldName === "${fieldName}" ){
|
57
66
|
<#attempt>
|
@@ -65,6 +74,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
65
74
|
throw new Error("There is no " + fieldName + " field");
|
66
75
|
},
|
67
76
|
"exists": function (fieldName) {
|
77
|
+
<#if !messagesPerField?? >
|
78
|
+
return false;
|
79
|
+
</#if>
|
68
80
|
<#list fieldNames as fieldName>
|
69
81
|
if(fieldName === "${fieldName}" ){
|
70
82
|
<#attempt>
|
@@ -137,6 +149,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
137
149
|
key == "identityProviderBrokerCtx" &&
|
138
150
|
are_same_path(path, []) &&
|
139
151
|
["login-idp-link-confirm.ftl", "login-idp-link-email.ftl" ]?seq_contains(pageId)
|
152
|
+
) || (
|
153
|
+
["masterAdminClient", "delegateForUpdate", "defaultRole"]?seq_contains(key) &&
|
154
|
+
are_same_path(path, ["realm"])
|
140
155
|
)
|
141
156
|
>
|
142
157
|
<#local out_seq += ["/*If you need '" + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
|
package/package.json
CHANGED
package/src/bin/build-keycloak-theme/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl
CHANGED
@@ -30,6 +30,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
30
30
|
</#attempt>
|
31
31
|
|
32
32
|
"printIfExists": function (fieldName, x) {
|
33
|
+
<#if !messagesPerField?? >
|
34
|
+
return undefined;
|
35
|
+
</#if>
|
33
36
|
<#list fieldNames as fieldName>
|
34
37
|
if(fieldName === "${fieldName}" ){
|
35
38
|
<#attempt>
|
@@ -41,6 +44,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
41
44
|
throw new Error("There is no " + fieldName + " field");
|
42
45
|
},
|
43
46
|
"existsError": function (fieldName) {
|
47
|
+
<#if !messagesPerField?? >
|
48
|
+
return false;
|
49
|
+
</#if>
|
44
50
|
<#list fieldNames as fieldName>
|
45
51
|
if(fieldName === "${fieldName}" ){
|
46
52
|
<#attempt>
|
@@ -52,6 +58,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
52
58
|
throw new Error("There is no " + fieldName + " field");
|
53
59
|
},
|
54
60
|
"get": function (fieldName) {
|
61
|
+
<#if !messagesPerField?? >
|
62
|
+
return '';
|
63
|
+
</#if>
|
55
64
|
<#list fieldNames as fieldName>
|
56
65
|
if(fieldName === "${fieldName}" ){
|
57
66
|
<#attempt>
|
@@ -65,6 +74,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
65
74
|
throw new Error("There is no " + fieldName + " field");
|
66
75
|
},
|
67
76
|
"exists": function (fieldName) {
|
77
|
+
<#if !messagesPerField?? >
|
78
|
+
return false;
|
79
|
+
</#if>
|
68
80
|
<#list fieldNames as fieldName>
|
69
81
|
if(fieldName === "${fieldName}" ){
|
70
82
|
<#attempt>
|
@@ -137,6 +149,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
137
149
|
key == "identityProviderBrokerCtx" &&
|
138
150
|
are_same_path(path, []) &&
|
139
151
|
["login-idp-link-confirm.ftl", "login-idp-link-email.ftl" ]?seq_contains(pageId)
|
152
|
+
) || (
|
153
|
+
["masterAdminClient", "delegateForUpdate", "defaultRole"]?seq_contains(key) &&
|
154
|
+
are_same_path(path, ["realm"])
|
140
155
|
)
|
141
156
|
>
|
142
157
|
<#local out_seq += ["/*If you need '" + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
|