Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,7 @@ public static Response finishedRequiredActions(KeycloakSession session, Authenti

if (authSession.getAuthNote(END_AFTER_REQUIRED_ACTIONS) != null) {
LoginFormsProvider infoPage = session.getProvider(LoginFormsProvider.class).setAuthenticationSession(authSession)
.setAttribute("messageHeader", Messages.ACCOUNT_UPDATED_TITLE)
.setSuccess(Messages.ACCOUNT_UPDATED);
if (authSession.getAuthNote(SET_REDIRECT_URI_AFTER_REQUIRED_ACTIONS) != null) {
if (authSession.getRedirectUri() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ public class Messages {

public static final String ACCOUNT_UPDATED = "accountUpdatedMessage";

public static final String ACCOUNT_UPDATED_TITLE = "accountUpdatedTitle";

public static final String ACCOUNT_PASSWORD_UPDATED = "accountPasswordUpdatedMessage";

public static final String NO_ACCESS = "noAccessMessage";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ public void sendResetPasswordEmailWithRedirect() throws IOException {

passwordUpdatePage.changePassword("new-pass", "new-pass");

assertEquals("Your account has been updated.", driver.findElement(By.id("kc-page-title")).getText());
assertEquals("Account updated", driver.findElement(By.id("kc-page-title")).getText());

String pageSource = driver.page().getPageSource();

Expand Down Expand Up @@ -696,7 +696,7 @@ public void sendResetPasswordEmailWithRedirectAndCustomLifespan() throws IOExcep

passwordUpdatePage.changePassword("new-pass", "new-pass");

assertEquals("Your account has been updated.", driver.findElement(By.id("kc-page-title")).getText());
assertEquals("Account updated", driver.findElement(By.id("kc-page-title")).getText());

String pageSource = driver.page().getPageSource();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ linkIdpMessage=You need to verify your email address to link your account with {
emailSentMessage=You should receive an email shortly with further instructions.
emailSendErrorMessage=Failed to send email, please try again later.

accountUpdatedTitle=Account updated
accountUpdatedMessage=Your account has been updated.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably this is required somewhere else, but I'm not familiar with the process

accountPasswordUpdatedMessage=Your password has been updated.

Expand Down
Loading