Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clients aren't allowed to manually update email verification #174

Closed
pcg92 opened this issue May 21, 2019 · 2 comments
Closed

Clients aren't allowed to manually update email verification #174

pcg92 opened this issue May 21, 2019 · 2 comments

Comments

@pcg92
Copy link
Contributor

pcg92 commented May 21, 2019

Im getting the following error updating the current user.

ParseException (Type: OperationForbidden) :
Code: 119
Message: Clients aren't allowed to manually update email verification

This is my code:

  Future<bool> setUserNotifyLocations(List<String> ids) async {
    ParseUser user = await ParseUser.currentUser();
    user.set('centros', ids);
    ParseResponse response = await user.save();
    return response.success;
  }

Any idea? Im using the version 1.0.21

@pcg92 pcg92 changed the title Clients aren't allowed to manually update email verificatin Clients aren't allowed to manually update email verification May 21, 2019
@phillwiggins
Copy link
Member

Hey @pcegarra

I'm not going to lie, I have 0 idea about this. This looks to be ParseServer related. I'm not certain but maybe this isn't something the SDK is suppose to do. The reason code looks like it shouldn't be possible via the SDK. What is 'centros'? It looks like it's trying to override the verification object on Parse?

@pcg92
Copy link
Contributor Author

pcg92 commented May 21, 2019

I was getting the same error changing the value 'centros' or 'hamburguers' XD, my "solution" is to create a new parse user and set the object id of the current user, then save.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants