Skip to content

add login with qq, wechat and weibo #3069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 22, 2016

Conversation

qiushi2012
Copy link
Contributor

add login with qq, wechat and weibo

Copy link
Contributor

@flovilmart flovilmart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks for your PR, can you please address the code style nits and we'll be able to merge that?

@@ -33,7 +36,10 @@ let providers = {
digits,
janrainengage,
janraincapture,
vkontakte
vkontakte,
qq:qq,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pleas use the short hand like the others

function graphRequest(path) {
return new Promise(function (resolve, reject) {


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove blank lines

}).on('error', function (e) {
reject('Failed to validate this access token with qq.');
});

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove blank lines


function graphRequest(path) {
return new Promise(function (resolve, reject) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove blank lines

}).on('error', function (e) {
reject('Failed to validate this access token with weixin.');
});

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove blank lines

"access_token":access_token
});

var options = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const

}
};

var req = https.request(options, function(res){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const

var data = '';
res.on('data', function (chunk) {
data += chunk;
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

});
req.write(postData);
req.end();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove blank line

module.exports = {
validateAppId: validateAppId,
validateAuthData: validateAuthData
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use short hands and add line break

@facebook-github-bot
Copy link

@qiushi2012 updated the pull request - view changes

@flovilmart
Copy link
Contributor

Thanks! This all seems to be ok now!

@flovilmart flovilmart merged commit e4a7fbb into parse-community:master Nov 22, 2016
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Dec 3, 2016
* add login with qq, wechat and weibo

* modify the code style, etc
Jcarlosjunior pushed a commit to back4app/parse-server that referenced this pull request Dec 13, 2016
* add login with qq, wechat and weibo

* modify the code style, etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants