Package se.bth.pulse.controller
Class PasswordChangeController
java.lang.Object
se.bth.pulse.controller.PasswordChangeController
This class is a view controller that serves the change password page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshowPasswordChange
(org.springframework.ui.Model model, org.springframework.security.core.Authentication authentication) Shows the password change page to the user.
-
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 viewauthentication
- - used to get the username of the logged-in user- Returns:
- String - the name of the view to be rendered
-