Package org.xbricks.heimdall.controllers
Class RegistrationController
java.lang.Object
org.xbricks.heimdall.controllers.RegistrationController
-
Constructor Summary
ConstructorDescriptionRegistrationController
(UserService userService, org.springframework.context.MessageSource messages, org.springframework.mail.javamail.JavaMailSender mailSender, org.springframework.core.env.Environment env, ISecurityUserService securityUserService) -
Method Summary
Modifier and TypeMethodDescriptionforgetPassword
(org.springframework.ui.Model model) resetPassword
(jakarta.servlet.http.HttpServletRequest request, String username) savePassword
(Locale locale, @Valid PasswordDto passwordDto) showChangePasswordPage
(Locale locale, org.springframework.ui.Model model, String username, String token) updatePassword
(org.springframework.ui.Model model)
-
Constructor Details
-
RegistrationController
public RegistrationController(UserService userService, org.springframework.context.MessageSource messages, org.springframework.mail.javamail.JavaMailSender mailSender, org.springframework.core.env.Environment env, ISecurityUserService securityUserService)
-
-
Method Details
-
resetPassword
@PostMapping @RequestMapping("/user/resetPassword") @ResponseBody public GenericResponse resetPassword(jakarta.servlet.http.HttpServletRequest request, @RequestParam("username") String username) -
showChangePasswordPage
-
savePassword
@PostMapping @RequestMapping("/user/savePassword") @ResponseBody public GenericResponse savePassword(Locale locale, @Valid @Valid PasswordDto passwordDto) -
forgetPassword
@GetMapping @RequestMapping("/user/forgetPassword") public String forgetPassword(org.springframework.ui.Model model) -
updatePassword
@GetMapping @RequestMapping("/user/updatePassword") public String updatePassword(org.springframework.ui.Model model)
-