summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/user.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth/user.cpp')
-rw-r--r--src/mongo/db/auth/user.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/auth/user.cpp b/src/mongo/db/auth/user.cpp
index 6ed98aae6f3..ff967a9f8a0 100644
--- a/src/mongo/db/auth/user.cpp
+++ b/src/mongo/db/auth/user.cpp
@@ -47,7 +47,7 @@ namespace mongo {
namespace {
SHA256Block computeDigest(const UserName& name) {
- const auto& fn = name.getFullName();
+ auto fn = name.getDisplayName();
return SHA256Block::computeHash({ConstDataRange(fn.c_str(), fn.size())});
};