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

更新uni-id-co

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