Skip to content

Commit

Permalink
Adding a login interface to solve login redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
nvasta committed Jan 16, 2024
1 parent d5edb3b commit 3691413
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ public String about(Model model) {
return "about";
}

/**
* Logs the user in an authenticated session and redirect to the home page.
*
* @param request The logout request
* @return The home page
*/
@GetMapping(path = "/login")
public ModelAndView login(HttpServletRequest request) {
return new ModelAndView("redirect:" + "/");
}

/**
* Logs the user out of the authenticated session.
*
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ info:
operatorMrn: ${service.variable.info.operator.mrn}
operatorContact: ${service.variable.info.operator.contact}
operatorUrl: ${service.variable.info.operator.url}
copyright: Copyright \u00A9 2021 Maritime Connectivity Platform Consortium
copyright: 'Copyright © 2024 Maritime Connectivity Platform Consortium'
projectLocation: 'https://github.com/maritimeconnectivity/ServiceRegistry'
profile: ${spring.profiles.active:test}

Expand Down

0 comments on commit 3691413

Please sign in to comment.