diff options
Diffstat (limited to 'src/mongo/db/auth/authentication_session.h')
| -rw-r--r-- | src/mongo/db/auth/authentication_session.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/auth/authentication_session.h b/src/mongo/db/auth/authentication_session.h index 0b95b4ed2fb..09206ab8b21 100644 --- a/src/mongo/db/auth/authentication_session.h +++ b/src/mongo/db/auth/authentication_session.h @@ -145,7 +145,7 @@ public: * The database will be validated against the current database for this session. */ void updateDatabase(StringData database) { - updateUserName(UserName("", database.toString())); + updateUserName(UserName("", database.toString()), false /* isMechX509 */); } /** @@ -153,7 +153,7 @@ public: * * The user name will be validated against the current user name for this session. */ - void updateUserName(UserName userName); + void updateUserName(UserName userName, bool isMechX509); /** * Set the last user name used with `saslSupportedMechs` for this session. @@ -235,7 +235,7 @@ private: static boost::optional<AuthenticationSession>& _get(Client* client); void _finish(); - void _verifyUserNameFromSaslSupportedMechanisms(const UserName& user); + void _verifyUserNameFromSaslSupportedMechanisms(const UserName& user, bool isMechX509); Client* const _client; |
