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 Summary
ConstructorsConstructorDescriptionEmailForgotPasswordTaskFactory(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 Summary
Modifier and TypeMethodDescriptionvoidprepareTask(String username) Creates a task to be executed to handle the forgot password request
-
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
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
IOException
-
prepareTask
Description copied from interface:ForgotPasswordTaskFactoryCreates a task to be executed to handle the forgot password request- Specified by:
prepareTaskin interfaceForgotPasswordTaskFactory- Parameters:
username- the username- Returns:
- the task
-