diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js index db30e02270cbe12d0916ebc7c39d9105b9f93135..36cebc6884292c9f6e54b78c2fd5d264fbea17af 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js @@ -200,6 +200,14 @@ module.exports = async function (params = {}) { realData.identities = user.identities } + if (mobile) { + realData.mobile_confirmed = 1 + } + + if (email) { + realData.email_confirmed = 1 + } + await userCollection.where(query).update(realData) return {