Class EmailForgotPasswordTaskFactory

java.lang.Object
org.craftercms.studio.impl.v2.security.password.EmailForgotPasswordTaskFactory
All Implemented Interfaces:
ForgotPasswordTaskFactory, org.springframework.beans.factory.InitializingBean

public class EmailForgotPasswordTaskFactory extends Object implements ForgotPasswordTaskFactory, org.springframework.beans.factory.InitializingBean
ForgotPasswordTaskFactory implementation that creates a task to send the user a password reset link
Since:
4.1.2
  • Constructor Details

    • EmailForgotPasswordTaskFactory

      @ConstructorProperties({"userService","userServiceInternal","studioConfiguration","freeMarkerConfig","emailService","emailServiceNoAuth"}) public EmailForgotPasswordTaskFactory(UserService userService, UserServiceInternal userServiceInternal, StudioConfiguration studioConfiguration, org.springframework.beans.factory.ObjectFactory<org.springframework.web.servlet.view.freemarker.FreeMarkerConfig> freeMarkerConfig, org.springframework.mail.javamail.JavaMailSender emailService, org.springframework.mail.javamail.JavaMailSender emailServiceNoAuth)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws IOException
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      IOException
    • prepareTask

      @NonNull public Runnable prepareTask(@NonNull String username)
      Description copied from interface: ForgotPasswordTaskFactory
      Creates a task to be executed to handle the forgot password request
      Specified by:
      prepareTask in interface ForgotPasswordTaskFactory
      Parameters:
      username - the username
      Returns:
      the task