Class PasswordResetPageController


  • @Controller
    @RequestMapping("/login/pw")
    public class PasswordResetPageController
    extends AbstractPageController
    Controller for the forgotten password pages. Supports requesting a password reset email as well as changing the password once you have got the token that was sent via email.
    • Constructor Detail

      • PasswordResetPageController

        public PasswordResetPageController()
    • Method Detail

      • getExternalPasswordRequest

        @RequestMapping(value="/request/external",
                        method=GET)
        public java.lang.String getExternalPasswordRequest​(org.springframework.ui.Model model)
                                                    throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • getExternalPasswordRequestConf

        @RequestMapping(value="/request/external/conf",
                        method=GET)
        public java.lang.String getExternalPasswordRequestConf​(org.springframework.ui.Model model)
                                                        throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • externalPasswordRequest

        @RequestMapping(value="/request/external",
                        method=POST)
        public java.lang.String externalPasswordRequest​(@Valid
                                                        @Valid ForgottenPwdForm form,
                                                        org.springframework.validation.BindingResult bindingResult,
                                                        org.springframework.ui.Model model,
                                                        org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                                 throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • getChangePassword

        @RequestMapping(value="/change",
                        method=GET)
        public java.lang.String getChangePassword​(@RequestParam(required=false)
                                                  java.lang.String token,
                                                  org.springframework.ui.Model model)
                                           throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • changePassword

        @RequestMapping(value="/change",
                        method=POST)
        public java.lang.String changePassword​(@Valid
                                               @Valid UpdatePwdForm form,
                                               org.springframework.validation.BindingResult bindingResult,
                                               org.springframework.ui.Model model,
                                               org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                        throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException