I followed the Pre-registration action flow and just added this line to see if user registrations go through or not.
Looks like no matter how I return out or use this, the registration goes through. I want to understand if I am missing something or is there a different way to achieve this.
A brief about my setup
- Pre-registration action to stop User registration with the same Email ID
- ULP page setup in a React app
- Social + Username_Password connection types
I also tried to explicitly call the getUserByEmail API inside the Pre-registration hook to deny registrations but that also isn’t work. Can anyone please help me with this? Thanks in advance!