{"action":"created","issue":{"url":"https://api.github.com/repos/python273/vk_api/issues/26","repository_url":"https://api.github.com/repos/python273/vk_api","labels_url":"https://api.github.com/repos/python273/vk_api/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/python273/vk_api/issues/26/comments","events_url":"https://api.github.com/repos/python273/vk_api/issues/26/events","html_url":"https://github.com/python273/vk_api/issues/26","id":136621083,"number":26,"title":"No handler for two-factor authorization.","user":{"login":"levin-kelevra","id":4024330,"avatar_url":"https://avatars.githubusercontent.com/u/4024330?v=3","gravatar_id":"","url":"https://api.github.com/users/levin-kelevra","html_url":"https://github.com/levin-kelevra","followers_url":"https://api.github.com/users/levin-kelevra/followers","following_url":"https://api.github.com/users/levin-kelevra/following{/other_user}","gists_url":"https://api.github.com/users/levin-kelevra/gists{/gist_id}","starred_url":"https://api.github.com/users/levin-kelevra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levin-kelevra/subscriptions","organizations_url":"https://api.github.com/users/levin-kelevra/orgs","repos_url":"https://api.github.com/users/levin-kelevra/repos","events_url":"https://api.github.com/users/levin-kelevra/events{/privacy}","received_events_url":"https://api.github.com/users/levin-kelevra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-26T07:41:19Z","updated_at":"2016-02-26T13:40:40Z","closed_at":null,"body":"Привет!\r\nНа моем аккаунте настроена двух-факторная аутентификация.\r\nПри попытке залогиниться получаю следующее:\r\n\r\n`AuthorizationError: No handler for two-factor authorization.`\r\n\r\nБудет ли написан обработчик?"},"comment":{"url":"https://api.github.com/repos/python273/vk_api/issues/comments/189280868","html_url":"https://github.com/python273/vk_api/issues/26#issuecomment-189280868","issue_url":"https://api.github.com/repos/python273/vk_api/issues/26","id":189280868,"user":{"login":"python273","id":3097956,"avatar_url":"https://avatars.githubusercontent.com/u/3097956?v=3","gravatar_id":"","url":"https://api.github.com/users/python273","html_url":"https://github.com/python273","followers_url":"https://api.github.com/users/python273/followers","following_url":"https://api.github.com/users/python273/following{/other_user}","gists_url":"https://api.github.com/users/python273/gists{/gist_id}","starred_url":"https://api.github.com/users/python273/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python273/subscriptions","organizations_url":"https://api.github.com/users/python273/orgs","repos_url":"https://api.github.com/users/python273/repos","events_url":"https://api.github.com/users/python273/events{/privacy}","received_events_url":"https://api.github.com/users/python273/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T13:40:40Z","updated_at":"2016-02-26T13:40:40Z","body":"Обработчик каждый себе сам пишет, вот самый простой\r\n\r\n`\r\nimport vk_api\r\n\r\ndef two_factor():\r\n    code = input('Code? ')\r\n    return code\r\n\r\n\r\ndef main():\r\n    login, password = 'log', 'pass'\r\n    vk = vk_api.VkApi(login, password, auth_handler=two_factor)\r\n\r\n    try:\r\n        vk.authorization()\r\n    except vk_api.AuthorizationError as error_msg:\r\n        print(error_msg)\r\n        return\r\n\r\n    print('ok!')\r\n    \r\n\r\nif __name__ == '__main__':\r\n    main()\r\n`"}}