mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
commit
a995c84ddf
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user