Skip to content

Commit e9c1dcb

Browse files
committed
extend recommended rules
1 parent e921f18 commit e9c1dcb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/wpgraphql-logging/src/Logger/Processors/DataSanitizationProcessor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ protected function get_recommended_rules(): array {
6767
'request.app_context.viewer.allcaps' => 'remove',
6868
'request.app_context.viewer.cap_key' => 'remove',
6969
'request.app_context.viewer.caps' => 'remove',
70+
'variables.username' => 'anonymize',
71+
'variables.password' => 'anonymize',
72+
'variables.email' => 'anonymize',
7073
];
7174

7275
return apply_filters( 'wpgraphql_logging_data_sanitization_recommended_rules', $rules );

0 commit comments

Comments
 (0)