Skip to content

Commit

Permalink
Update login failure check
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahburkhardt committed Dec 16, 2021
1 parent 54c349f commit 76c1d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myfitnesspal/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _login(self):
"json": True,
},
)
if "Incorrect username or password" in result.text:
if "error=CredentialsSignin" in result.url:
raise MyfitnesspalLoginError()

self._auth_data = self._get_auth_data()
Expand Down

0 comments on commit 76c1d5b

Please sign in to comment.