• This controller will create new account of user in database and send an email to the given email that will contain a verification code (OTP) which will be verified in /api/auth/verify/:email/:verificationCode route

    Author

    aayushchugh

    Parameters

    • req: Request<{}, {}, {
          acceptedTermsAndConditions: boolean;
          cpassword: string;
          email: string;
          password: string;
          receiveMarketingEmails: boolean;
          username: string;
      }, ParsedQs, Record<string, any>>

      request

    • res: Response<any, Record<string, any>>

      response

    Returns Promise<Response<any, Record<string, any>>>

Generated using TypeDoc