Email verification status not correctly shown to user
Steps to reproduce:
- Open the application URL 'https://peerid.peerplays.download'.
- Signup with a valid Email id.
- Click on this link sent in the mail.
- In the backend you get an error in the log as below
[ERROR] api.module.js - TypeError: Cannot set property 'isEmailVerified' of null
at UserService.confirmEmail (/home/bunker/peerid-backend/src/services/user.service.js:330:26)
at async AuthController.confirmEmail (/home/bunker/peerid-backend/src/modules/api/controllers/auth.controller.js:539:17)
at async /home/bunker/peerid-backend/src/modules/api/api.module.js:183:24
Expected Result:
User should be fetched in the log.
Actual Result:
User is coming as null.