Hi,
thanks for reaching out! We will check this behavior with the team :)
At the moment, what I would like to recommend is that you use a trigger to validate this login. Please, take a look at the steps below:
1. Ensure that you are using a Parse Server version equal to or higher the 3.7.2.
Check this going to: Server Settings > Manage Parse Server > Settings.
2. Create a file called main.js and paste the following code:
Parse.Cloud.beforeLogin(async request => {
const { object: user } = request;
if(!user.get('emailVerified')) {
throw new Error('Access denied, please valid your email account!')
}
});
Then, upload the main.js file going to Dashboard > Core > Cloud Code Functions > Click on the '+Add' button, select the file and click on the 'deploy' button.
3. Then, create a new user with the cURL below:
curl -X POST \
-H "X-Parse-Application-Id: APPLICATIO_ID" \
-H "X-Parse-REST-API-Key: REST_KEY" \
--
data-
urlencode "{\"username\":\"cooldude6\",\"password\":\"p_n7!-e8\",\"phone\":\"415-392-0202\"}" \
4. Now, let's try the login:
curl -X GET \
-H "X-Parse-Application-Id: APPLICATIO_ID" \
-H "X-Parse-REST-API-Key: REST_KEY" \
-H "X-Parse-Revocable-Session: 1" \
-G \
--data-urlencode 'username=cooldude6' \
--data-urlencode 'password=p_n7!-e8' \
The result was:
{"code":141,"error":"Access denied, please valid your email account!"}
Done, for now, it is what you can do to "force" the email validation.
Should you need any further help, please don't hesitate to contact us!
Regards,