Skip to content

Commit

Permalink
Merge pull request spring-projects#4237 from awgtek/master
Browse files Browse the repository at this point in the history
* pr/4237:
  Switch MongoCredential method
  • Loading branch information
philwebb committed Nov 10, 2015
2 parents d5d6507 + deaa905 commit 6c17442
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ public MongoClient createMongoClient(MongoClientOptions options,
if (hasCustomCredentials()) {
String database = this.authenticationDatabase == null
? getMongoClientDatabase() : this.authenticationDatabase;
credentials = Arrays.asList(MongoCredential.createMongoCRCredential(
this.username, database, this.password));
credentials = Arrays.asList(MongoCredential
.createCredential(this.username, database, this.password));
}
String host = this.host == null ? "localhost" : this.host;
int port = determinePort(environment);
Expand Down

0 comments on commit 6c17442

Please sign in to comment.