Skip to content

Commit

Permalink
Implemented #10
Browse files Browse the repository at this point in the history
Signed-off-by: Domenico Iezzi <[email protected]>
  • Loading branch information
Domenico Iezzi committed Oct 13, 2017
1 parent cfbdd08 commit afe6541
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gpapi/googleplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from clint.textui import progress

import requests
import sys
import base64
import itertools

Expand Down Expand Up @@ -176,6 +177,11 @@ def login(self, email=None, password=None, gsfId=None, authSubToken=None, device
if "auth" in params:
ac2dmToken = params["auth"]
elif "error" in params:
if "NeedsBrowser" in params["error"]:
print("\nsecurity check is needed, try to visit\n"
"https://accounts.google.com/b/0/DisplayUnlockCaptcha\n"
"if you use 2FA it is recommended to setup an app specific password\n")
sys.exit(1)
raise LoginError("server says: " + params["error"])
else:
raise LoginError("Auth token not found.")
Expand Down

0 comments on commit afe6541

Please sign in to comment.