We have a custom storefront with the API and hydrogen. We need to create an account where if it is an existing account or a non existing account always will send the /email_templates/customer_account_activate/ email where the customer needs to verify his/her email adres. In our case we call the api with a non existing customer the customer get send email_templates/customer_account_welcome/ email and the customer does not need to verify his/her email adress. This way a robot can create fake accounts in our Shopify database. Is it possible to always send the account activate email when an account will be created and the user can not log in without activating his account first?
So the needed steps will be:
-
Customer provides his/her name (first + last name) and email
-
Customer will receive activation email and gets linked to the account activation page where he/she will set the password twice
-
After succesfully activating the account he/she gets logged in and can use the account with a verified email