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 +
Your account is not enabled because you need to update your account information.
Please follow the steps below.