mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
parent
262655a1d8
commit
8627d57906
@ -11,10 +11,15 @@ export default {
|
||||
}
|
||||
},
|
||||
Query: async (resolve, root, args, context, info) => {
|
||||
const result = await resolve(root, args, context, info)
|
||||
return walkRecursive(result, ['password'], () => {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
@ -73,7 +73,8 @@ const permissions = shield({
|
||||
},
|
||||
User: {
|
||||
email: isMyOwn,
|
||||
password: isMyOwn
|
||||
password: isMyOwn,
|
||||
privateKey: isMyOwn
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user