mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
oauth1: Don't try to render results after sending a redirect.
This now causes an error, but was always wrong.
This commit is contained in:
@@ -26,7 +26,6 @@ Oauth1._handleRequest = function (service, query, res) {
|
||||
var redirectUrl = urls.authenticate + '?oauth_token=' + oauthBinding.requestToken;
|
||||
res.writeHead(302, {'Location': redirectUrl});
|
||||
res.end();
|
||||
|
||||
} else {
|
||||
// step 2, redirected from provider login - complete the login
|
||||
// process: if the user authorized permissions, get an access
|
||||
@@ -56,9 +55,9 @@ Oauth1._handleRequest = function (service, query, res) {
|
||||
options: oauthResult.options
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Either close the window, redirect, or render nothing
|
||||
// if all else fails
|
||||
Oauth._renderOauthResults(res, query);
|
||||
// Either close the window, redirect, or render nothing
|
||||
// if all else fails
|
||||
Oauth._renderOauthResults(res, query);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user