Modified auth info for 2 factor auth

This commit is contained in:
Manuel Cortez 2019-06-05 10:38:59 -05:00
parent 4810cbe138
commit 8cdec543e1

View File

@ -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}