mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 15:05:50 +01:00
When using H2, caution message shows at sign-in.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
@(userName: Option[Any] = None,
|
@(userName: Option[Any] = None,
|
||||||
password: Option[Any] = None,
|
password: Option[Any] = None,
|
||||||
error: Option[Any] = None)(implicit context: gitbucket.core.controller.Context)
|
error: Option[Any] = None)(implicit context: gitbucket.core.controller.Context)
|
||||||
|
@import gitbucket.core.util.DatabaseConfig
|
||||||
@gitbucket.core.html.main("Sign in"){
|
@gitbucket.core.html.main("Sign in"){
|
||||||
<div class="content-wrapper main-center">
|
<div class="content-wrapper main-center">
|
||||||
<div class="content body">
|
<div class="content body">
|
||||||
@@ -11,6 +12,12 @@
|
|||||||
@Html(information)
|
@Html(information)
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
@if(DatabaseConfig.url.startsWith("jdbc:h2:")) {
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
H2 database should be used for evaluation purpose only.
|
||||||
|
</div>
|
||||||
|
}
|
||||||
@gitbucket.core.helper.html.error(error)
|
@gitbucket.core.helper.html.error(error)
|
||||||
@gitbucket.core.html.signinform(context.settings, userName, password)
|
@gitbucket.core.html.signinform(context.settings, userName, password)
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user