diff --git a/forms/src/main/java/org/keycloak/forms/UserBean.java b/forms/src/main/java/org/keycloak/forms/UserBean.java index 019adb2c49..1662623ca4 100755 --- a/forms/src/main/java/org/keycloak/forms/UserBean.java +++ b/forms/src/main/java/org/keycloak/forms/UserBean.java @@ -30,24 +30,35 @@ public class UserBean { private UserModel user; + private String firstName; + private String lastName; + private String email; + private String username; + public UserBean(UserModel user){ this.user = user; + if (user != null){ + this.firstName = user.getFirstName(); + this.lastName = user.getLastName(); + this.username = user.getLoginName(); + this.email = user.getEmail(); + } } public String getFirstName() { - return user.getFirstName(); + return firstName; } public String getLastName() { - return user.getLastName(); + return lastName; } public String getUsername() { - return user.getLoginName(); + return username; } public String getEmail() { - return user.getEmail(); + return email; } UserModel getUser() { diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/css/forms.css b/forms/src/main/resources/META-INF/resources/forms/theme/default/css/forms.css index 78a16e4122..082dbdd004 100644 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/css/forms.css +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/css/forms.css @@ -267,7 +267,7 @@ button.primary:enabled:active { } .feedback.warning p { border-color: #f17528; - background-image: url(img/feedback-warning-sign.svg); + background-image: url(img/feedback-warning-sign.png); background-color: #fef1e9; } button, diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/css/img/feedback-warning-sign.png b/forms/src/main/resources/META-INF/resources/forms/theme/default/css/img/feedback-warning-sign.png new file mode 100644 index 0000000000..f9392a356f Binary files /dev/null and b/forms/src/main/resources/META-INF/resources/forms/theme/default/css/img/feedback-warning-sign.png differ diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-profile.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-profile.ftl index 06a06af6cf..fb9a8e47ba 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-profile.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-profile.ftl @@ -2,28 +2,36 @@ <@layout.registrationLayout bodyClass=""; section> <#if section = "title"> - Update profile + Update Account Information <#elseif section = "header"> - Update profile +

Update Account Information

+ <#elseif section = "feedback"> +
+

Your account is not enabled because you need to update your account information.
Please follow the steps below.

+
<#elseif section = "form">
-
- - -
-
- - -
+ +

All fields required

+
+ + +
+
+ + +
@@ -31,11 +39,5 @@
- - <#elseif section = "info" > - -
-
- \ No newline at end of file diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/template-login-action.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/template-login-action.ftl index 4f20710faf..70794b16cd 100644 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/template-login-action.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/template-login-action.ftl @@ -16,6 +16,9 @@ +
+ <#nested "feedback"> +
<#if (template.themeConfig.logo)?has_content>

Logo diff --git a/testsuite/src/test/java/org/keycloak/testsuite/pages/LoginUpdateProfilePage.java b/testsuite/src/test/java/org/keycloak/testsuite/pages/LoginUpdateProfilePage.java index 88d41efaa4..9a4b45465c 100644 --- a/testsuite/src/test/java/org/keycloak/testsuite/pages/LoginUpdateProfilePage.java +++ b/testsuite/src/test/java/org/keycloak/testsuite/pages/LoginUpdateProfilePage.java @@ -60,7 +60,7 @@ public class LoginUpdateProfilePage extends Page { } public boolean isCurrent() { - return driver.getTitle().equals("Update profile"); + return driver.getTitle().equals("Update Account Information"); } @Override