From 498f974c88f563805998cdda4f80b8227124bd85 Mon Sep 17 00:00:00 2001 From: harduino <37391150+harduino@users.noreply.github.com> Date: Mon, 21 Jun 2021 17:32:29 +0300 Subject: [PATCH] Ability to set init-password via ENV --- thehive/app/org/thp/thehive/models/User.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thehive/app/org/thp/thehive/models/User.scala b/thehive/app/org/thp/thehive/models/User.scala index 6e20df04b5..ab747b71aa 100644 --- a/thehive/app/org/thp/thehive/models/User.scala +++ b/thehive/app/org/thp/thehive/models/User.scala @@ -24,7 +24,7 @@ case class User(login: String, name: String, apikey: Option[String], locked: Boo } object User { - val initPassword: String = "secret" + val initPassword: String = sys.env.getOrElse("THEHIVE_INIT_PASSWORD", "secret") val init: User = User( login = "admin@thehive.local",