Email verification status not correctly shown to user

Steps to reproduce:

  1. Open the application URL 'https://peerid.peerplays.download'.
  2. Signup with a valid Email id.
  3. Click on this link sent in the mail.
  4. 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.