Revision 660

Date:
2017/08/08 17:18:00
Author:
ahitrov
Revision Log:
VK oAuth bugfix

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/session/lib/session/AUTH/VKontakte.pm

     
    60 60 $self->{vk_access_token_url} = 'https://oauth.vk.com/access_token';
    61 61 $self->{vk_user_info_url} = 'https://api.vk.com/method/getProfiles';
    62 62
    63 for (qw( vk_app_id vk_app_secret vk_scope)) {
    63 for (qw( vk_app_id vk_app_secret )) {
    64 64 $self->{$_} = $config{$_} || $state->{session}->{$_} || return undef;
    65 65 }
    66 $self->{vk_scope} = $config{$_} || $state->{session}->{$_};
    66 67 $self->{timeout} = $state->{session}->{connection_timeout} || 3;
    67 68 for (qw(vk_user_post_url vk_redirect_uri)) {
    68 69 $self->{$_} = $config{$_} || $state->{session}->{$_};