журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r22082: LJSUP-12366: Skip step 'congratulations'...

Committer: nnikulochkina
LJSUP-12366: Skip step 'congratulations' for identity accounts if account was created for oauth-authorization
U   trunk/cgi-bin/LJ/Identity.pm
Modified: trunk/cgi-bin/LJ/Identity.pm
===================================================================
--- trunk/cgi-bin/LJ/Identity.pm	2012-05-28 13:49:40 UTC (rev 22081)
+++ trunk/cgi-bin/LJ/Identity.pm	2012-05-28 14:38:16 UTC (rev 22082)
@@ -205,7 +205,8 @@
 sub unpack_forwhat {
     my ($class, $forwhat) = @_;
 
-    my ($returl, $returl_fail);
+    my ($returl, $returl_fail, $skip_interstitial);
+    $skip_interstitial = 0;
     if ($forwhat eq 'login') {
         $returl = $LJ::SITEROOT;
         $returl_fail = "$LJ::SITEROOT/identity/login.bml?type=" . $class->short_code;
@@ -262,6 +263,7 @@
     } elsif ( $forwhat =~ /^oauth\-([a-z0-9]+)$/i ) {
         $returl = "$LJ::SSLROOT/oauth/authorize_token.bml?oauth_token=$1";
         $returl_fail = $returl;
+        $skip_interstitial = 1;
     } else {
         # the warning will sit in error logs, and the exception
         # will be handled
@@ -269,7 +271,7 @@
         die;
     }
 
-    return ($returl, $returl_fail);
+    return ($returl, $returl_fail, $skip_interstitial);
 }
 
 1;

Tags: livejournal, nikulochkina, nnikulochkina, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments