From a7920a7dd780657cd20a36b2c2213c373c0ef8f3 Mon Sep 17 00:00:00 2001 From: KOUNOIKE Yuusuke Date: Sat, 1 Apr 2017 19:29:24 +0900 Subject: [PATCH] When using H2, caution message shows at sign-in. --- src/main/twirl/gitbucket/core/signin.scala.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/twirl/gitbucket/core/signin.scala.html b/src/main/twirl/gitbucket/core/signin.scala.html index fa172d851..828388711 100644 --- a/src/main/twirl/gitbucket/core/signin.scala.html +++ b/src/main/twirl/gitbucket/core/signin.scala.html @@ -1,6 +1,7 @@ @(userName: Option[Any] = None, password: Option[Any] = None, error: Option[Any] = None)(implicit context: gitbucket.core.controller.Context) +@import gitbucket.core.util.DatabaseConfig @gitbucket.core.html.main("Sign in"){
@@ -11,6 +12,12 @@ @Html(information)
} + @if(DatabaseConfig.url.startsWith("jdbc:h2:")) { +
+ + H2 database should be used for evaluation purpose only. +
+ } @gitbucket.core.helper.html.error(error) @gitbucket.core.html.signinform(context.settings, userName, password)