summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/user.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth/user.h')
-rw-r--r--src/mongo/db/auth/user.h11
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;