PiedTeam / NikeCloneTraining-BE-Project

1 stars 0 forks source link

refactor: add function generateOtp #173

Closed lcaohoanq closed 5 months ago

lcaohoanq commented 5 months ago

change interface to type add type assignment for req.body

  • remove redundant check isExist user : because if user do a verify account (by phone or email), only user have login in system and they have a accessToken, and we add the accessTokenValidator already, so if user do not login and go to verify (it will not work)