Class PasswordResetController


  • @Controller
    @RequestMapping("/password_reset")
    public class PasswordResetController
    extends java.lang.Object
    Controller for handling password reset flow
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PASSWORD_RESET_PAGE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getResetPage​(java.lang.String resetId, boolean expired, org.springframework.ui.Model model)
      Get the password reset page
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PASSWORD_RESET_PAGE

        public static final java.lang.String PASSWORD_RESET_PAGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • PasswordResetController

        @Autowired
        public PasswordResetController​(PasswordResetService passwordResetService)
    • Method Detail

      • getResetPage

        @RequestMapping(value="/{resetId}",
                        method=GET)
        public java.lang.String getResetPage​(@PathVariable
                                             java.lang.String resetId,
                                             @RequestParam(required=false,defaultValue="false")
                                             boolean expired,
                                             org.springframework.ui.Model model)
        Get the password reset page
        Parameters:
        resetId - The ID of the PasswordReset
        expired - indicates whether we're showing the reset page because of an expired password or a reset request.
        model - A model for the page
        Returns:
        The string name of the page