Committer: nnikulochkina
LJSUP-12409: Implement style parameter processing in 'authorize token' requestU trunk/cgi-bin/LJ/Identity/MailRU.pm U trunk/cgi-bin/LJ/Identity/Vkontakte.pm
Modified: trunk/cgi-bin/LJ/Identity/MailRU.pm =================================================================== --- trunk/cgi-bin/LJ/Identity/MailRU.pm 2012-05-30 16:45:36 UTC (rev 12036) +++ trunk/cgi-bin/LJ/Identity/MailRU.pm 2012-05-31 10:26:49 UTC (rev 12037) @@ -24,7 +24,7 @@ "client_id=$LJ::MAILRU_CONNECT_CLIENT_ID&" . 'scope=stream&' . 'response_type=code&redirect_uri=' . LJ::Text->eurl($callback_url); - + $addr .= '&display=mobile' if ($forwhat =~ /^oauth-/) && $opts{mobile}; return LJ::Request->redirect($addr); } Modified: trunk/cgi-bin/LJ/Identity/Vkontakte.pm =================================================================== --- trunk/cgi-bin/LJ/Identity/Vkontakte.pm 2012-05-30 16:45:36 UTC (rev 12036) +++ trunk/cgi-bin/LJ/Identity/Vkontakte.pm 2012-05-31 10:26:49 UTC (rev 12037) @@ -25,7 +25,7 @@ my $display = $forwhat eq 'external' ? 'popup' : 'page'; - + $display = 'touch' if ($forwhat =~ /^oauth-/) && $opts{mobile}; my $addr = LJ::Client::Vkontakte->oauth_url( { 'redirect_uri' => $callback_url, 'display' => $display,