Skip to content

Commit cd7fc60

Browse files
committed
VkApi.security_check: fix RE_NUMBER_HASH
1 parent a4b0877 commit cd7fc60

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
@@ -19,7 +19,7 @@
1919
HTTP_ERROR_CODE = -1
2020

2121
RE_CAPTCHAID = re.compile(r'sid=(\d+)')
22-
RE_NUMBER_HASH = re.compile(r'security_check.*?hash: \'(.*?)\'\};')
22+
RE_NUMBER_HASH = re.compile(r"al_page: '3', hash: '([a-z0-9]+)'")
2323
RE_TOKEN_URL = re.compile(r'location\.href = "(.*?)"\+addr;')
2424

2525
RE_PHONE_PREFIX = re.compile(r'phone_number">(.*?)<')

0 commit comments

Comments
 (0)