diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-08-22 15:25:52 -0400 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-09-17 17:21:40 -0400 |
commit | e78dc4e8cf32da88062090410ab8617f604633c9 (patch) | |
tree | df238a81200a01b354ebad2ad9ecd2dc7c9bedb3 /src/mongo/s/commands/cluster_user_management_commands.cpp | |
parent | f99914d14b76718f1fef879cfaabe23c0c8f0857 (diff) | |
download | mongo-e78dc4e8cf32da88062090410ab8617f604633c9.tar.gz |
SERVER-36606: Allow commands to expose names of sensitive fields
Diffstat (limited to 'src/mongo/s/commands/cluster_user_management_commands.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_user_management_commands.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/commands/cluster_user_management_commands.cpp b/src/mongo/s/commands/cluster_user_management_commands.cpp index 76c34c7d63c..1d4d836fc09 100644 --- a/src/mongo/s/commands/cluster_user_management_commands.cpp +++ b/src/mongo/s/commands/cluster_user_management_commands.cpp @@ -94,8 +94,8 @@ public: &result); } - void redactForLogging(mutablebson::Document* cmdObj) const override { - auth::redactPasswordData(cmdObj->root()); + StringData sensitiveFieldName() const final { + return "pwd"_sd; } } cmdCreateUser; @@ -144,8 +144,8 @@ public: return ok; } - void redactForLogging(mutablebson::Document* cmdObj) const override { - auth::redactPasswordData(cmdObj->root()); + StringData sensitiveFieldName() const final { + return "pwd"_sd; } } cmdUpdateUser; |