Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: viste <[email protected]>
  • Loading branch information
Viste committed Aug 20, 2024
1 parent 19a109b commit 76696db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def authorize_vk():
data = {
'client_id': Config.VK_CLIENT_ID,
'grant_type': 'authorization_code',
'code_verifier': session['code_verifier'],
'code_verifier': session.get('code_verifier'),
'code': code,
'redirect_uri': url_for('authorize_vk', _external=True),
}
Expand Down Expand Up @@ -219,7 +219,6 @@ def authorize_vk():
current_app.logger.debug(f"Failed to retrieve user info. Response: {user_info}")
return redirect(url_for('login'))


user_id = user_info['user']['user_id']
first_name = user_info['user']['first_name']
last_name = user_info['user']['last_name']
Expand Down

0 comments on commit 76696db

Please sign in to comment.