Skip to content

Commit 919247a

Browse files
authored
Merge pull request #58 from just806me/twofactor_auth_fix
Fix twofactor auth
2 parents a742c5a + 087a2c6 commit 919247a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vk_api/vk_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
RE_LOGIN_HASH = re.compile(r'name="lg_h" value="([a-z0-9]+)"')
2727
RE_CAPTCHAID = re.compile(r"onLoginCaptcha\('(\d+)'")
2828
RE_NUMBER_HASH = re.compile(r"al_page: '3', hash: '([a-z0-9]+)'")
29-
RE_AUTH_HASH = re.compile(r"hash: '([a-z_0-9]+)'")
29+
RE_AUTH_HASH = re.compile(r"\{.*?act: 'a_authcheck_code'.+?hash: '([a-z_0-9]+)'.*?\}")
3030
RE_TOKEN_URL = re.compile(r'location\.href = "(.*?)"\+addr;')
3131

3232
RE_PHONE_PREFIX = re.compile(r'label ta_r">\+(.*?)<')

0 commit comments

Comments
 (0)