From 8cdec543e1269442f742e360c7b332e12aa2154f Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 5 Jun 2019 10:38:59 -0500 Subject: [PATCH] Modified auth info for 2 factor auth --- src/authenticator/official.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authenticator/official.py b/src/authenticator/official.py index 24c3cfd..1943dfa 100644 --- a/src/authenticator/official.py +++ b/src/authenticator/official.py @@ -55,7 +55,7 @@ def get_non_refreshed(login, password, scope=scope): url = "https://oauth.vk.com/token" params = dict(grant_type="password", client_id=client_id, client_secret=client_secret, username=login, - password=password, v=api_ver, scope=scope, lang="en", device_id=device_id) + password=password, v=api_ver, scope=scope, lang="en", device_id=device_id, force_sms=1) # Add two factor auth later due to python's syntax. params["2fa_supported"] = 1 headers = {'User-Agent': user_agent}