Committer: ailyin
LJSUP-8758 (Error: google connectivity error)U trunk/htdocs/identity/callback-google.bml
Modified: trunk/htdocs/identity/callback-google.bml =================================================================== --- trunk/htdocs/identity/callback-google.bml 2011-05-05 08:54:33 UTC (rev 10484) +++ trunk/htdocs/identity/callback-google.bml 2011-05-06 01:54:36 UTC (rev 10485) @@ -24,6 +24,12 @@ return 'This feature is disabled.'; } + my $error = LJ::Request->get_param('error'); + if ( defined $error && $error eq 'no_profile' ) { + $title = LJ::Lang::ml('.title.error.no_profile'); + return LJ::Lang::ml( '.error.no_profile', { 'back' => $returl } ); + } + my $code = LJ::Request->get_param('code'); unless ( $code ) { @@ -46,8 +52,9 @@ } ); unless ( $userinfo->{'profileUrl'} ) { - $title = LJ::Lang::ml('.title.error.no_profile'); - return LJ::Lang::ml( '.error.no_profile', { 'back' => $returl } ); + my $redir_url + = "$LJ::SITEROOT/identity/callback-google.bml?error=no_profile"; + return LJ::Request->redirect( $redir_url ); } my $u = LJ::User::load_identity_user(