Skip to content

Commit

Permalink
Merge pull request #797 from isb-cgc/isb-cgc-prod-sp
Browse files Browse the repository at this point in the history
Hotfix for Sprint 30: email case insensitivity fix
  • Loading branch information
s-paquette authored Dec 22, 2018
2 parents 718d55a + 035d780 commit a9faa63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions accounts/dcf_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,10 @@ def compare_google_ids(dcf_version, cgc_version, user_email):
"""
When we get new tokens from DCF, we want to sanity check if the Google IDs are in agreement.
"""
# Fix for 2530:
dcf_version = dcf_version.lower() if dcf_version else dcf_version
cgc_version = cgc_version.lower() if cgc_version else cgc_version
user_email = user_email.lower() if user_email else user_email

if dcf_version != cgc_version:
# Most likely possibility is that either DCF or us thinks the google ID is None and the other doesn't. Another
Expand Down

0 comments on commit a9faa63

Please sign in to comment.