Skip to content

Commit

Permalink
resolve probleme of another authentication method for wallet V2
Browse files Browse the repository at this point in the history
  • Loading branch information
morhegrania committed May 23, 2023
1 parent 9e57515 commit 9a90892
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions middleware/passport.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,8 @@ exports.linkFacebookAccount = async (
} else {
await User.updateOne(
{ _id: user_id },
{ $set: { idOnSn: profile._json.token_for_business } }

{ $set: { idOnSn: profile._json.token_for_business, completed: true } }
)
return cb(null, profile, {
status: true,
Expand Down Expand Up @@ -771,7 +772,8 @@ exports.linkGoogleAccount = async (
} else {
await User.updateOne(
{ _id: user_id },
{ $set: { idOnSn2: profile.id } }

{ $set: { idOnSn2: profile.id, completed: true} }
)
return done(null, profile, {
status: true,
Expand Down Expand Up @@ -803,7 +805,8 @@ exports.telegram_connect_function = async (req, profile, cb) => {
} else {
await User.updateOne(
{ _id: user_id },
{ $set: { idOnSn3: profile.id } }

{ $set: { idOnSn3: profile.id, completed: true } }
)
return cb(null, profile, {
status: true,
Expand Down

0 comments on commit 9a90892

Please sign in to comment.