fix: proper error message when login with wechat fails (#4000)
* fix typo it should be weixin not qq. * change error message from weixin to wechat * remove unnecessary check
This commit is contained in:
committed by
Florent Vilmart
parent
9d6b4f4cc4
commit
a26e4c7470
@@ -9,7 +9,7 @@ var logger = require('../../logger').default;
|
||||
// Returns a promise that fulfills iff this user id is valid.
|
||||
function validateAuthData(authData, params) {
|
||||
return vkOAuth2Request(params).then(function (response) {
|
||||
if (response && response && response.access_token) {
|
||||
if (response && response.access_token) {
|
||||
return request("api.vk.com", "method/secure.checkToken?token=" + authData.access_token + "&client_secret=" + params.appSecret + "&access_token=" + response.access_token).then(function (response) {
|
||||
if (response && response.response && response.response.user_id == authData.id) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user