diff options
| author | Rapptz <[email protected]> | 2017-01-19 18:32:17 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-19 18:32:17 -0500 |
| commit | 4b6b5bd35eb59a0dac72039ce5bbd21c2ad26d6a (patch) | |
| tree | fb9869d2b4a098e7123f6e930d4bcea3e7a33292 /discord/http.py | |
| parent | Reimplement Guild.me property without patching it in. (diff) | |
| download | discord.py-4b6b5bd35eb59a0dac72039ce5bbd21c2ad26d6a.tar.xz discord.py-4b6b5bd35eb59a0dac72039ce5bbd21c2ad26d6a.zip | |
Remove email/password based login.
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/discord/http.py b/discord/http.py index cb0a666e..e4d48690 100644 --- a/discord/http.py +++ b/discord/http.py @@ -244,23 +244,6 @@ class HTTPClient: # login management @asyncio.coroutine - def email_login(self, email, password): - payload = { - 'email': email, - 'password': password - } - - try: - data = yield from self.request(Route('POST', '/auth/login'), json=payload) - except HTTPException as e: - if e.response.status == 400: - raise LoginFailure('Improper credentials have been passed.') from e - raise - - self._token(data['token'], bot=False) - return data - - @asyncio.coroutine def static_login(self, token, *, bot): old_token, old_bot = self.token, self.bot_token self._token(token, bot=bot) |