Package com.openmeet.webservice.services
Class PasswordRecoveryService
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.openmeet.webservice.services.PasswordRecoveryService
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class PasswordRecoveryService
extends jakarta.servlet.http.HttpServlet
Servlet that handles password recovery activity.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) On GET request, the method changes Meeter's password and then sends an email with the new passwordvoiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) On POST request, the method checks if Meeter's email exists.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Constructor Details
-
PasswordRecoveryService
public PasswordRecoveryService()
-
-
Method Details
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException On GET request, the method changes Meeter's password and then sends an email with the new password- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Parameters:
request- anHttpServletRequestobject that contains the request the client has made of the servletresponse- anHttpServletResponseobject that contains the response the servlet sends to the client- Throws:
jakarta.servlet.ServletExceptionIOException
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException On POST request, the method checks if Meeter's email exists. If it exists, it will send an email with recovery link.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
request- anHttpServletRequestobject that contains the request the client has made of the servletresponse- anHttpServletResponseobject that contains the response the servlet sends to the client- Throws:
IOException
-