Skip to content

Email Verification not registering - Analytic not captured #1

Description

Hello Juan,

Ok so I cloned this repo and added my Parse server config vars.

Couple of things I found:

  1. I have email verification=true. I register a User and get an email with link as expected. I click link and get the Successfully verified your email! as expected however when I go to my data browser emailVerified=false. I try logging in and get the error: User email is not verified. to verify. When I comment out the cloud code (main.js) and register the User I get a successful email verification.

  2. The Analytic event is not being captured. I assume that I should receive an object in the Analytic class indicating a new user registers. I created the class and am not receiving any errors on before or after save when registering a new user.

Here is the output when registering a new user:

{"className":"_User","triggerType":"beforeSave","level":"info","message":"beforeSave triggered for _User for user undefined:\n  Input: {\"username\":\"test4\",\"email\":\"test4@example.com\",\"password\":\"********\",\"first_name\":\"Test\",\"last_name\":\"User\"}\n  Result: {\"object\":{\"username\":\"test4\",\"email\":\"test4@example.com\",\"password\":\"********\",\"first_name\":\"Test\",\"last_name\":\"User\",\"receiveEmails\":true,\"name\":\"test4\"}}"}
{"className":"_User","triggerType":"afterSave","level":"info","message":"afterSave triggered for _User for user undefined:\n  Input: {\"username\":\"test4\",\"email\":\"test4@example.com\",\"first_name\":\"Test\",\"last_name\":\"User\",\"emailVerified\":false,\"ACL\":{\"*\":{\"read\":true,\"write\":false},\"ZSzojX0AHQKR\":{\"read\":true,\"write\":true}},\"createdAt\":\"2018-09-15T05:42:00.537Z\",\"receiveEmails\":true,\"name\":\"test4\",\"updatedAt\":\"2018-09-15T05:42:00.537Z\",\"objectId\":\"ZSzojX0AHQKR\"}"}
{"className":"_User","triggerType":"afterSave","level":"info","message":"afterSave triggered for _User for user undefined:\n  Input: {\"username\":\"test4\",\"email\":\"test4@example.com\",\"first_name\":\"Test\",\"last_name\":\"User\",\"emailVerified\":false,\"ACL\":{\"*\":{\"read\":true,\"write\":false},\"ZSzojX0AHQKR\":{\"read\":true,\"write\":true}},\"createdAt\":\"2018-09-15T05:42:00.537Z\",\"receiveEmails\":true,\"name\":\"test4\",\"updatedAt\":\"2018-09-15T05:42:00.537Z\",\"objectId\":\"ZSzojX0AHQKR\"}\n  Result: {}"}
Message sent: 250 2.0.0 OK 1536990122 w3-v6sm4679711qkd.64 - gsmtp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions