Skip to content

Commit 8d4271e

Browse files
committed
Fix auth: fails with utf8 passwords
1 parent 387cd98 commit 8d4271e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vk_api/vk_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ def _vk_login(self, captcha_sid=None, captcha_key=None):
265265
'captcha_sid': '',
266266
'captcha_key': '',
267267
'_origin': 'https://vk.com',
268+
'utf8': '1',
268269
'ip_h': search_re(RE_LOGIN_IP_H, response.text),
269270
'lg_h': search_re(RE_LOGIN_LG_H, response.text),
270271
'lg_domain_h': search_re(RE_LOGIN_LG_DOMAIN_H, response.text),

0 commit comments

Comments
 (0)