Skip to content

Commit ce04806

Browse files
committed
edit
1 parent 8956505 commit ce04806

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

source/includes/security/authentication.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ val mongoClient =
1010
// end-default-cred-string
1111

1212
// start-default-mongo-cred
13-
val credential = MongoCredential.createCredential(
14-
"<db_username>", "<authenticationDb>", "<db_password>".toCharArray()
15-
)
16-
1713
val credential = MongoCredential.createCredential(
1814
"<db_username>", "<authenticationDb>", "<db_password>".toCharArray()
1915
)
@@ -67,7 +63,7 @@ val settings = MongoClientSettings.builder()
6763
}
6864
.credential(credential)
6965
.build()
70-
66+
7167
val mongoClient = MongoClient.create(settings)
7268
// end-scramsha1-mongo-cred
7369

0 commit comments

Comments
 (0)