6 Digits Password Reset Code

I followed this documentation. But it gives error.

This topic has been created from a Discord post (1255473068927877272) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

1 Like

Here is my file location

do you have schema.json insude src>extensions>users-permissions>content-types>user ?

<@337611776093061130> here is update, but needs to be tested, that one on link i wrote more then 1 year ago :laughing:

Thanks a lot, but it still gives error

Then I tried to change imports to const’ s

const crypto = require("crypto"); const _ = require("lodash"); const utils = require("@strapi/utils"); const { yup, validateYupSchema } = utils;

This is the result

I guess i fixed it

<@337611776093061130> I use TS in new, and before was plain JS