Class PasswordChangeController

java.lang.Object
se.bth.pulse.controller.PasswordChangeController

@Controller public class PasswordChangeController extends Object
This class is a view controller that serves the change password page.
  • Constructor Details

    • PasswordChangeController

      public PasswordChangeController()
  • Method Details

    • showPasswordChange

      @GetMapping("/change-password") public String showPasswordChange(org.springframework.ui.Model model, org.springframework.security.core.Authentication authentication)
      Shows the password change page to the user.
      Parameters:
      model - - used to pass attributes to the view
      authentication - - used to get the username of the logged-in user
      Returns:
      String - the name of the view to be rendered