Merge branch 'keep_private_rsa_key_secret' of https://github.com/Human-Connection/Human-Connection into keep_private_rsa_key_secret_TirNew

This commit is contained in:
Wolfgang Huß 2019-04-05 18:43:47 +02:00
commit a995c84ddf

View File

@ -11,11 +11,15 @@ export default {
}
},
Query: async (resolve, root, args, context, info) => {
const result = await resolve(root, args, context, info)
// eslint-disable-next-line spaced-comment
return walkRecursive(result, ['password'/*, 'privateKey'*/], () => {
// replace "password" and "privatKey" with asterisk
let result = await resolve(root, args, context, info)
result = walkRecursive(result, ['password'], () => {
// replace password with asterisk
return '*****'
})
// result = walkRecursive(result, ['privateKey'], () => {
// // replace password with asterisk
// return '*****'
// })
return result
}
}