Skip to content

Commit

Permalink
TheHive-Project#39 Ignore username or password if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Dec 18, 2017
1 parent 9bacbc8 commit f9103ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/org/elastic4play/database/DBConfiguration.scala
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ class DBConfiguration(

val xpackClient = for {
username xpackUsername
if username.nonEmpty
password xpackPassword
if password.nonEmpty
_ = settings.put("xpack.security.user", s"$username:$password")
} yield XPackElasticClient(settings.build(), uri)

Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version := "1.4.1"
version := "1.4.2-SNAPSHOT"

0 comments on commit f9103ac

Please sign in to comment.