Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

bug: Fix up FCM library to reject enpdoints with invalid FCM senderids #573

Merged
merged 1 commit into from
Jul 29, 2016

Conversation

jrconlin
Copy link
Member

Closes #556

(picks up spare from #561)

@bbangert @pjenvey r?

@codecov-io
Copy link

codecov-io commented Jul 29, 2016

Current coverage is 100% (diff: 100%)

Merging #573 into master will not change coverage

@@           master   #573   diff @@
====================================
  Files          42     42          
  Lines        8770   8774     +4   
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
+ Hits         8770   8774     +4   
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last update 0ede5f7...56633e4

@@ -50,6 +50,8 @@ def register(self, uaid, router_data, router_token=None, *kwargs):
if "token" not in router_data:
raise self._error("connect info missing FCM Instance 'token'",
status=401)
if not (router_token == router_data['token'] == self.senderID):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may or may not want to copy the associated comment over from gcm.py, up to you

@pjenvey
Copy link
Member

pjenvey commented Jul 29, 2016

r+

@bbangert
Copy link
Member

r+

@jrconlin jrconlin merged commit 68c6a51 into master Jul 29, 2016
@bbangert bbangert deleted the bug/561a branch July 30, 2016 05:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants