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:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PasswordRecoveryService()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `doGet(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 password
  `void`
  `doPost(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, service`

  ### Methods inherited from class jakarta.servlet.GenericServlet

  `destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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:
      `doGet` in class `jakarta.servlet.http.HttpServlet`
    Parameters:
      `request` - an `HttpServletRequest` object that contains the request the client has made of the servlet
      `response` - an `HttpServletResponse` object that contains the response the servlet sends to the client
    Throws:
      `jakarta.servlet.ServletException`
      `IOException`

  - ### 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:
      `doPost` in class `jakarta.servlet.http.HttpServlet`
    Parameters:
      `request` - an `HttpServletRequest` object that contains the request the client has made of the servlet
      `response` - an `HttpServletResponse` object that contains the response the servlet sends to the client
    Throws:
      `IOException`