提交 3ea27216 编写于 作者: C chenruilong

fix: 联登更新用户信息时存在手机号或者邮箱时没有设置认证状态

上级 cfee1e78
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册