https://supertokens.com/ logo
#support-questions
Title
# support-questions
s

scherbatsky.jr

04/27/2022, 11:53 AM
I am using Postman and response I get is
Copy code
{
  "status": "OK"
}
No effect on changing the console location
r

rp

04/27/2022, 11:55 AM
Hey! Let’s talk here
Can you open an issue about this on our GitHub please?
s

scherbatsky.jr

04/27/2022, 11:56 AM
Okay
I will check around more before I do that.
r

rp

04/27/2022, 11:57 AM
Ok! Thanks
Hey @scherbatsky.jr were you able to figure out this issue?
s

scherbatsky.jr

04/28/2022, 7:29 AM
I am using NEST js. I need to send an custom email to user when they request password reset by submitting their email. I am following this documentation: [Custom Password Reset Email ](https://supertokens.com/docs/emailpassword/common-customizations/reset-password/password-reset-email) I have added a console log to see if the function is reached or not. I am using postman and the route I am using is:
POST: http://<api_url>/auth/user/password/reset/token
Headers: rid => emailpassword Body:
Copy code
{
  "formFields": [
    {
      "id": "email",
      "value": "user@test.com"
    }
  ]
}
Code in supertokens.service:
Copy code
recipeList: [
        EmailPassword.init({
            resetPasswordUsingTokenFeature: {
                createAndSendCustomEmail: async (user, passwordResetURLWithToken) => {
                    console.log('I am here')
                    userService.sendEmail();
                }
            }
        }),
        Session.init()
    ]
The response I get is { status: "OK" }. But neither the console is logged nor the user service is called.
r

rp

04/28/2022, 7:32 AM
So that can also happen if the user you are sending the email to deosn't actually exist in the systyem
so if you have created a user that has the email user@test.com, then it will call the callback. Else not
And I can confirm that the callback will get called if a user exists cause we have tests for this, and I just edited one of our demo apps to have a callback which is getting called
s

scherbatsky.jr

04/28/2022, 7:35 AM
Alright. That makes sense. All of our emails are prefixed to represent their tenant.
r

rp

04/28/2022, 7:37 AM
Okay. Does my comment help you solve your issue?
s

scherbatsky.jr

04/28/2022, 7:50 AM
Yes. It does. Thanks
3 Views