Skip to content

Commit

Permalink
Merge pull request #502 from yaphone/master
Browse files Browse the repository at this point in the history
修复登陆接口
  • Loading branch information
darknessomi committed Mar 3, 2017
2 parents 713db1b + 25ee186 commit dfc75eb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions NEMbox/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,6 @@ def login(self, username, password):
return self.phone_login(username, password)
action = 'https://music.163.com/weapi/login?csrf_token='
self.session.cookies.load()
csrf = ''
for cookie in self.session.cookies:
if cookie.name == '__csrf':
csrf = cookie.value
if csrf == '':
return {'code': 501}
action += csrf
text = {
'username': username,
'password': password,
Expand Down

0 comments on commit dfc75eb

Please sign in to comment.