Open or2e opened 5 days ago
Hi, I looked through the discussion thread and didn't find a similar question
Thanks for the great module!
I have a question.
Why does the register||createUser function directly create a user without using the great Directus functionality out of the box?
register||createUser
/users/register
/users/register/verify-email
At the same time, the requestPasswordReset method uses a similar Directus mechanism with verification
requestPasswordReset
So we can use the boxed mechanism for user registration verification (sending an email)
Feel free to make a PR 😉
Hi, I looked through the discussion thread and didn't find a similar question
Thanks for the great module!
I have a question.
Why does the
register||createUser
function directly create a user without using the great Directus functionality out of the box?/users/register
/users/register/verify-email
At the same time, the
requestPasswordReset
method uses a similar Directus mechanism with verificationSome example
```ts const register = async (data: DirectusRegisterCredentials & { verification_url: string }): PromiseSo we can use the boxed mechanism for user registration verification (sending an email)