Skip to content

Commit

Permalink
actually locked down to NPS
Browse files Browse the repository at this point in the history
  • Loading branch information
karimroshan authored Dec 7, 2022
1 parent 562014e commit 601bd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def validateGoogleToken(token) -> dict:
try:
domain = idInfo["email"].split("@")[1]
verified = idInfo["email_verified"]
if domain != NEWTON or domain != ABSENT or not verified:
if (domain != NEWTON and domain != ABSENT) or not verified:
logger.info(f"Google token for a non-NPS account POSTed")
utils.raiseError(401, "Not an NPS issued account", structs.ErrorType.AUTH)
except BaseException:
Expand Down

0 comments on commit 601bd2d

Please sign in to comment.