Skip to content

Commit

Permalink
Revert request passing change
Browse files Browse the repository at this point in the history
  • Loading branch information
TatuJLund committed May 28, 2024
1 parent 7cfe081 commit 6acc44d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ protected void init(VaadinRequest request) {
}

private void showLoginView(VaadinRequest request) {
setContent(new LoginView(getAccessControl(), e -> onLogin(request)));
setContent(new LoginView(getAccessControl(), e -> onLogin()));
}

private void onLogin(VaadinRequest request) {
private void onLogin() {
target = getInitialTarget();
logger.info("Initial target '{}'", target);
Utils.sessionFixation(request);
Utils.sessionFixation();
getPage().reload();
showAppLayout();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public static String sanitize(String unsanitized) {
return text;
}

public static void sessionFixation(VaadinRequest vaadinRequest) {
public static void sessionFixation() {
UI.getCurrent().getPushConfiguration().setPushMode(PushMode.DISABLED);
VaadinServletRequest request = (VaadinServletRequest) vaadinRequest;
VaadinServletRequest request = (VaadinServletRequest) VaadinRequest.getCurrent();
request.getHttpServletRequest().changeSessionId();
UI.getCurrent().getPushConfiguration().setPushMode(PushMode.AUTOMATIC);
}
Expand Down

0 comments on commit 6acc44d

Please sign in to comment.