Skip to content

Commit

Permalink
Line Login with NAVER Account is already obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
sh1ma committed Mar 25, 2018
1 parent 5446259 commit 937509d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions line/client.py
Expand Up @@ -19,7 +19,7 @@
reload(sys)
sys.setdefaultencoding("utf-8")

EMAIL_REGEX = re.compile(r"[^@]+@[^@]+\.[^@]+")
# EMAIL_REGEX = re.compile(r"[^@]+@[^@]+\.[^@]+")

def check_auth(func):
def wrapper_check_auth(*args, **kwargs):
Expand Down Expand Up @@ -75,11 +75,13 @@ def __init__(self, id=None, password=None, authToken=None, is_mac=True, com_name

self.tokenLogin()
#self.ready()
else:
if EMAIL_REGEX.match(id):
self.provider = Provider.LINE # LINE
else:
self.provider = Provider.NAVER_KR # NAVER

self.provider = Provider.LINE # LINE
# else:
# if EMAIL_REGEX.match(id):
# self.provider = Provider.LINE # LINE
# else:
# self.provider = Provider.NAVER_KR # NAVER

self.id = id
self.password = password
Expand Down

0 comments on commit 937509d

Please sign in to comment.