Class PasswordResetPageController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
de.hybris.platform.yacceleratorstorefront.controllers.pages.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.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
CMS_PAGE_MODEL, CMS_PAGE_TITLE, PAGE_ROOT, REDIRECT_TO_LOGIN_FOR_CHECKOUT, REDIRECT_TO_MULTISTEP_CHECKOUT, REGISTRATION_CONSENT_ID, UTF_8Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangePassword(@Valid UpdatePwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) externalPasswordRequest(@Valid ForgottenPwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) getChangePassword(String token, org.springframework.ui.Model model) getExternalPasswordRequest(org.springframework.ui.Model model) getExternalPasswordRequestConf(org.springframework.ui.Model model) getPasswordRequest(org.springframework.ui.Model model) passwordRequest(@Valid ForgottenPwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model) protected voidprepareErrorMessage(org.springframework.ui.Model model, String page) Prepares the view to display an error messageMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getBaseSiteService, getCheckoutRedirectUrl, getCmsPageService, getCmsPreviewService, getCmsSiteService, getConfigurationService, getConsentFacade, getContentPageForLabelOrId, getCurrencies, getCurrentCurrency, getCurrentLanguage, getCustomerFacade, getHostConfigService, getI18nService, getLanguages, getMessageSource, getPageTitleResolver, getRequestContextData, getSessionService, getSiteConfigService, getSiteName, getSiteUid, getStoreSessionFacade, getUser, getUserFacade, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Constructor Details
-
PasswordResetPageController
public PasswordResetPageController()
-
-
Method Details
-
getPasswordRequest
@RequestMapping(value="/request", method=GET) public String getPasswordRequest(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
passwordRequest
@RequestMapping(value="/request", method=POST) public String passwordRequest(@Valid @Valid ForgottenPwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getExternalPasswordRequest
@RequestMapping(value="/request/external", method=GET) public String getExternalPasswordRequest(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getExternalPasswordRequestConf
@RequestMapping(value="/request/external/conf", method=GET) public String getExternalPasswordRequestConf(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
externalPasswordRequest
@RequestMapping(value="/request/external", method=POST) public 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 String getChangePassword(@RequestParam(required=false) String token, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
changePassword
@RequestMapping(value="/change", method=POST) public 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
-
prepareErrorMessage
protected void prepareErrorMessage(org.springframework.ui.Model model, String page) throws CMSItemNotFoundException Prepares the view to display an error message- Throws:
CMSItemNotFoundException
-
getUpdatePasswordFormValidator
-