提交 bbcd1233 编写于 作者: DCloud_JSON's avatar DCloud_JSON

更新uni-id-co

上级 36491053
......@@ -366,7 +366,7 @@ class Validator {
schemaKey
}
} else {
delete value[schemaKey]
//delete value[schemaKey]
continue
}
}
......
......@@ -92,7 +92,7 @@ module.exports = async function (params = {}) {
const realData = Object.keys(data).reduce((res, key) => {
const item = data[key]
if (item) {
if (item !== undefined) {
res[key] = item
}
return res
......@@ -114,7 +114,6 @@ module.exports = async function (params = {}) {
}
}
}
if (password) {
const passwordUtils = new PasswordUtils({
clientInfo: this.getUniversalClientInfo(),
......@@ -127,12 +126,13 @@ module.exports = async function (params = {}) {
password
})
data.password = passwordHash
data.password_secret_version = version
realData.password = passwordHash
realData.password_secret_version = version
}
await userCollection.doc(uid).update(realData)
return {
errCode: 0
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册