Commit 284b2078 by David Robinson

Merge pull request #33 from Enalmada/patch-1

Add emailVerified to protected_attributes
parents 9e9bbd29 f7c6dbb0
...@@ -35,7 +35,7 @@ class User(ParseResource): ...@@ -35,7 +35,7 @@ class User(ParseResource):
''' '''
ENDPOINT_ROOT = '/'.join([API_ROOT, 'users']) ENDPOINT_ROOT = '/'.join([API_ROOT, 'users'])
PROTECTED_ATTRIBUTES = ParseResource.PROTECTED_ATTRIBUTES + [ PROTECTED_ATTRIBUTES = ParseResource.PROTECTED_ATTRIBUTES + [
'username', 'sessionToken'] 'username', 'sessionToken', 'emailVerified']
def is_authenticated(self): def is_authenticated(self):
return self.sessionToken is not None return self.sessionToken is not None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment