bagisto / rest-api

21 stars 23 forks source link

Email verification is not sent while registering a new customer through (REST API) /api/v1/customer/register #347

Open archtheonly opened 1 month ago

archtheonly commented 1 month ago

Terms

Bagisto Version(s) affected

from 2.1 to 2.2.2

Issue Description

Hello! First of all, thank you for a great product. I am having this bug from version 2.1, it is still present in 2.2.2 also (just tested yesterday).

The bug is the following; When the Customer creates a new account (I have Velacity theme), the email verification works pretty good. But I am also using the REST API for another Vue application. By sending POST request to /api/v1/customer/register, I get 200 and the account is created, the customer can log in without any issue, but the email verification is not sent. image But if I try to send a reset password by (/api/v1/customer/forgot-password), in this case the email is sent successfully. I tried to figure out that by checking the Velacity theme header requests and found out some token is being generated while sending the request, maybe the problem is associated with that. Thank you in advance for helping and fixing this!

Preconditions

I am using php 8.1 and Laravel 10 on ubuntu 22.04

Steps to reproduce

  1. Go to /api/v1/customer/register
  2. Click on try out and send a test request.
  3. Scroll down to the code status and check the status
  4. See error (by checking the email application)

Expected Result

The verification email should've been sent!

Actual Result

The verification email is not sent!

Screenshots

No response

Additional context

No response

archtheonly commented 1 month ago

Hello! Thank you @amit-webkul for assigning the bug. Here is the log error, in case you need that.

[previous exception] [object] (Illuminate\Routing\Exceptions\UrlGenerationException(code: 0): Missing required parameter for [Route: shop.customers.verify] [URI: customer/verify-account/{token}] [Missing parameter: token]. >[stacktrace]

archtheonly commented 1 month ago

Also wanted to ask @amit-webkul, is there any updates from you?

amit-webkul commented 1 month ago

Hello, @archtheonly

We are working on it and will update you soon.

archtheonly commented 1 week ago

Hello! @amit-webkul Is there any updates?