diff --git a/services/src/main/java/org/keycloak/forms/login/freemarker/FreeMarkerLoginFormsProvider.java b/services/src/main/java/org/keycloak/forms/login/freemarker/FreeMarkerLoginFormsProvider.java index ad1e53fd32..e6ebac0cda 100755 --- a/services/src/main/java/org/keycloak/forms/login/freemarker/FreeMarkerLoginFormsProvider.java +++ b/services/src/main/java/org/keycloak/forms/login/freemarker/FreeMarkerLoginFormsProvider.java @@ -174,6 +174,8 @@ public class FreeMarkerLoginFormsProvider implements LoginFormsProvider { page = LoginFormsPages.LOGIN_UPDATE_PASSWORD; break; case VERIFY_EMAIL: + UpdateProfileContext userBasedContext1 = new UserUpdateProfileContext(realm,user); + attributes.put("user",new ProfileBean(userBasedContext1,formData)); actionMessage = Messages.VERIFY_EMAIL; page = LoginFormsPages.LOGIN_VERIFY_EMAIL; break; diff --git a/testsuite/integration-arquillian/tests/other/base-ui/src/test/java/org/keycloak/testsuite/ui/login/RequiredActionsTest.java b/testsuite/integration-arquillian/tests/other/base-ui/src/test/java/org/keycloak/testsuite/ui/login/RequiredActionsTest.java index d114c5543f..6e45c13e2d 100644 --- a/testsuite/integration-arquillian/tests/other/base-ui/src/test/java/org/keycloak/testsuite/ui/login/RequiredActionsTest.java +++ b/testsuite/integration-arquillian/tests/other/base-ui/src/test/java/org/keycloak/testsuite/ui/login/RequiredActionsTest.java @@ -266,7 +266,7 @@ public class RequiredActionsTest extends AbstractLoginTest { while (true) { assertTrue(verifyEmailPage.feedbackMessage().isWarning()); assertEquals("[TEST LOCALE] je třeba ověřit emailovou adresu", verifyEmailPage.feedbackMessage().getText()); - assertEquals("An email with instructions to verify your email address has been sent to you.", verifyEmailPage.getInstructionMessage()); + assertEquals("An email with instructions to verify your email address has been sent to your address test@email.test.", verifyEmailPage.getInstructionMessage()); if (firstAttempt) { verifyEmailPage.clickResend(); diff --git a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/realm/LoginSettingsTest.java b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/realm/LoginSettingsTest.java index 6904e85dce..61b4b72fa1 100644 --- a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/realm/LoginSettingsTest.java +++ b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/realm/LoginSettingsTest.java @@ -295,7 +295,7 @@ public class LoginSettingsTest extends AbstractRealmTest { testAccountPage.navigateTo(); testRealmLoginPage.form().login(testUser); - Assert.assertEquals("An email with instructions to verify your email address has been sent to you.", + Assert.assertEquals("An email with instructions to verify your email address has been sent to your address test@email.test.", testRealmVerifyEmailPage.getInstructionMessage()); log.info("verified verify email is enabled"); diff --git a/themes/src/main/resources/theme/base/login/login-verify-email.ftl b/themes/src/main/resources/theme/base/login/login-verify-email.ftl index 0d0cd864a5..b47d8ca8d5 100755 --- a/themes/src/main/resources/theme/base/login/login-verify-email.ftl +++ b/themes/src/main/resources/theme/base/login/login-verify-email.ftl @@ -3,7 +3,7 @@ <#if section = "header"> ${msg("emailVerifyTitle")} <#elseif section = "form"> -
${msg("emailVerifyInstruction1")}
+${msg("emailVerifyInstruction1",user.email)}
<#elseif section = "info">${msg("emailVerifyInstruction2")} @@ -11,4 +11,4 @@ ${msg("doClickHere")} ${msg("emailVerifyInstruction3")}
#if> -@layout.registrationLayout> \ No newline at end of file +@layout.registrationLayout> diff --git a/themes/src/main/resources/theme/base/login/messages/messages_en.properties b/themes/src/main/resources/theme/base/login/messages/messages_en.properties index 13350e88c9..ffdd0041e5 100755 --- a/themes/src/main/resources/theme/base/login/messages/messages_en.properties +++ b/themes/src/main/resources/theme/base/login/messages/messages_en.properties @@ -146,7 +146,7 @@ oauth2DeviceVerificationFailedMessage=You may close this browser window and go b oauth2DeviceConsentDeniedMessage=Consent denied for connecting the device. oauth2DeviceAuthorizationGrantDisabledMessage=Client is not allowed to initiate OAuth 2.0 Device Authorization Grant. The flow is disabled for the client. -emailVerifyInstruction1=An email with instructions to verify your email address has been sent to you. +emailVerifyInstruction1=An email with instructions to verify your email address has been sent to your address {0}. emailVerifyInstruction2=Haven''t received a verification code in your email? emailVerifyInstruction3=to re-send the email.