From bb3937e3c14845107770d32cb2fe051a6f9810bc Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 13 Apr 2016 09:17:04 +0200 Subject: [PATCH] KEYCLOAK-2804 Prevent browser from prefilling username/password into non-login form --- themes/src/main/resources/theme/base/account/password.ftl | 3 +++ .../admin/resources/partials/authenticator-config.html | 2 ++ .../partials/client-credentials-jwt-key-export.html | 3 +++ .../partials/client-credentials-jwt-key-import.html | 3 +++ .../theme/base/admin/resources/partials/client-keys.html | 3 +++ .../admin/resources/partials/client-saml-key-export.html | 3 +++ .../admin/resources/partials/client-saml-key-import.html | 3 +++ .../base/admin/resources/partials/federated-ldap.html | 2 ++ .../resources/partials/realm-identity-provider-oidc.html | 8 ++++---- .../partials/realm-identity-provider-social.html | 8 ++++---- .../theme/base/admin/resources/partials/realm-keys.html | 3 +++ .../theme/base/admin/resources/partials/realm-smtp.html | 3 +++ .../base/admin/resources/partials/user-credentials.html | 5 ++++- .../resources/theme/base/login/login-update-password.ftl | 3 +++ themes/src/main/resources/theme/base/login/register.ftl | 3 +++ 15 files changed, 46 insertions(+), 9 deletions(-) diff --git a/themes/src/main/resources/theme/base/account/password.ftl b/themes/src/main/resources/theme/base/account/password.ftl index 5d2369aa14..5df21184fb 100755 --- a/themes/src/main/resources/theme/base/account/password.ftl +++ b/themes/src/main/resources/theme/base/account/password.ftl @@ -11,6 +11,9 @@
+ + + <#if password.passwordSet>
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/authenticator-config.html b/themes/src/main/resources/theme/base/admin/resources/partials/authenticator-config.html index 5045d4087c..858968e955 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/authenticator-config.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/authenticator-config.html @@ -12,6 +12,8 @@ data-ng-hide="changed" data-ng-click="remove()"> + +
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/client-credentials-jwt-key-export.html b/themes/src/main/resources/theme/base/admin/resources/partials/client-credentials-jwt-key-export.html index 7eb59248d9..382f612f29 100644 --- a/themes/src/main/resources/theme/base/admin/resources/partials/client-credentials-jwt-key-export.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/client-credentials-jwt-key-export.html @@ -10,6 +10,9 @@

{{:: 'generate-private-key' | translate}}

+ + +
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/client-credentials-jwt-key-import.html b/themes/src/main/resources/theme/base/admin/resources/partials/client-credentials-jwt-key-import.html index 1544aea828..1e8d6a995e 100644 --- a/themes/src/main/resources/theme/base/admin/resources/partials/client-credentials-jwt-key-import.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/client-credentials-jwt-key-import.html @@ -10,6 +10,9 @@

{{:: 'import-client-certificate' | translate}}

+ + +
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/client-keys.html b/themes/src/main/resources/theme/base/admin/resources/partials/client-keys.html index cf8bf4f107..e2bc22ef6d 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/client-keys.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/client-keys.html @@ -8,6 +8,9 @@ + + +
{{:: 'import-keys-and-cert' | translate}} {{:: 'import-keys-and-cert.tooltip' | translate}}
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/client-saml-key-export.html b/themes/src/main/resources/theme/base/admin/resources/partials/client-saml-key-export.html index f6cb851c6c..21651656ad 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/client-saml-key-export.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/client-saml-key-export.html @@ -10,6 +10,9 @@

{{:: 'export-saml-key' | translate}} {{client.clientId|capitalize}}

+ + +
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/client-saml-key-import.html b/themes/src/main/resources/theme/base/admin/resources/partials/client-saml-key-import.html index bd7c7b7a39..dec13a8c4c 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/client-saml-key-import.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/client-saml-key-import.html @@ -10,6 +10,9 @@

{{:: 'import-saml-key' | translate}} {{client.clientId|capitalize}}

+ + +
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/federated-ldap.html b/themes/src/main/resources/theme/base/admin/resources/partials/federated-ldap.html index 5c046b7f06..49d1fae6fe 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/federated-ldap.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/federated-ldap.html @@ -8,6 +8,8 @@ + +
{{:: 'required-settings' | translate}} diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-oidc.html b/themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-oidc.html index 1bcf81bba8..86c010219b 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-oidc.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-oidc.html @@ -7,6 +7,9 @@ + + +
@@ -139,10 +142,7 @@
{{:: 'client-secret.tooltip' | translate}}
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-social.html b/themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-social.html index 5090374515..29e85afcc9 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-social.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-social.html @@ -7,6 +7,9 @@ + + +
@@ -27,10 +30,7 @@
{{:: 'social.client-secret.tooltip' | translate}}
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/realm-keys.html b/themes/src/main/resources/theme/base/admin/resources/partials/realm-keys.html index b8a16c9e26..5133f378f9 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/realm-keys.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/realm-keys.html @@ -2,6 +2,9 @@ + + +
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/realm-smtp.html b/themes/src/main/resources/theme/base/admin/resources/partials/realm-smtp.html index 430c923563..7d778f5962 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/realm-smtp.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/realm-smtp.html @@ -2,6 +2,9 @@ + + +
diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/user-credentials.html b/themes/src/main/resources/theme/base/admin/resources/partials/user-credentials.html index 01a6a6999d..0f1053c872 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/user-credentials.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/user-credentials.html @@ -7,7 +7,10 @@ -
+ + + +
diff --git a/themes/src/main/resources/theme/base/login/login-update-password.ftl b/themes/src/main/resources/theme/base/login/login-update-password.ftl index bf0594d118..1dece7f3da 100755 --- a/themes/src/main/resources/theme/base/login/login-update-password.ftl +++ b/themes/src/main/resources/theme/base/login/login-update-password.ftl @@ -6,6 +6,9 @@ ${msg("updatePasswordTitle")} <#elseif section = "form"> + + +
diff --git a/themes/src/main/resources/theme/base/login/register.ftl b/themes/src/main/resources/theme/base/login/register.ftl index 18a01cff17..855bd9d9d0 100755 --- a/themes/src/main/resources/theme/base/login/register.ftl +++ b/themes/src/main/resources/theme/base/login/register.ftl @@ -6,6 +6,9 @@ ${msg("registerWithTitleHtml",(realm.displayNameHtml!''))} <#elseif section = "form"> + + + <#if !realm.registrationEmailAsUsername>