diff options
Diffstat (limited to 'src/mongo/db/auth/security_key.cpp')
-rw-r--r-- | src/mongo/db/auth/security_key.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/auth/security_key.cpp b/src/mongo/db/auth/security_key.cpp index c09075d4f31..f69dfeba5e1 100644 --- a/src/mongo/db/auth/security_key.cpp +++ b/src/mongo/db/auth/security_key.cpp @@ -83,8 +83,8 @@ public: "error"_attr = swSaslPassword.getStatus()); return boost::none; } - const auto passwordDigest = mongo::createPasswordDigest( - internalSecurity.user->getName().getUser().toString(), password); + const auto passwordDigest = + mongo::createPasswordDigest(internalSecurity.user->getName().getUser(), password); User::CredentialData credentials; if (!_copyCredentials( |