diff options
Diffstat (limited to 'src/mongo/db/auth/user.h')
-rw-r--r-- | src/mongo/db/auth/user.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/auth/user.h b/src/mongo/db/auth/user.h index 3950e42090a..d920abdda9d 100644 --- a/src/mongo/db/auth/user.h +++ b/src/mongo/db/auth/user.h @@ -59,12 +59,23 @@ namespace mongo { MONGO_DISALLOW_COPYING(User); public: struct SCRAMCredentials { + SCRAMCredentials() : + iterationCount(0), + salt(""), + serverKey(""), + storedKey("") {} + int iterationCount; std::string salt; std::string serverKey; std::string storedKey; }; struct CredentialData { + CredentialData() : + password(""), + scram(), + isExternal(false) {} + std::string password; SCRAMCredentials scram; bool isExternal; |