summaryrefslogtreecommitdiffstats
path: root/templates/admin/config.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-11-28 17:35:41 +0000
committertechknowlogick <techknowlogick@gitea.io>2019-11-28 12:35:41 -0500
commit54dab5aed999c1c3c0dd247de54a9cc2f9e6ebef (patch)
treedc9ccb097bb75a758cdfa01ba1714e3aac32893f /templates/admin/config.tmpl
parent3bdce82ce97299beb542fd90f5cc21caad302e08 (diff)
downloadgitea-54dab5aed999c1c3c0dd247de54a9cc2f9e6ebef.tar.gz
gitea-54dab5aed999c1c3c0dd247de54a9cc2f9e6ebef.zip
Properly fix displaying virtual session provider in admin panel (#9137)
* Properly fix #7127 Although #7300 properly shadows the password from the virtual session provider, the template displaying the provider config still presumed that the config was JSON. This PR updates the template and properly hides the Virtual Session provider. Fixes #7127 * update per @silverwind's suggestion
Diffstat (limited to 'templates/admin/config.tmpl')
-rw-r--r--templates/admin/config.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index 79eec31dfd..c2793ece9d 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -270,7 +270,7 @@
<dt>{{.i18n.Tr "admin.config.session_provider"}}</dt>
<dd>{{.SessionConfig.Provider}}</dd>
<dt>{{.i18n.Tr "admin.config.provider_config"}}</dt>
- <dd><pre>{{if .SessionConfig.ProviderConfig}}{{.SessionConfig.ProviderConfig | JsonPrettyPrint}}{{else}}-{{end}}</pre></dd>
+ <dd><code>{{if .SessionConfig.ProviderConfig}}{{.SessionConfig.ProviderConfig}}{{else}}-{{end}}</code></dd>
<dt>{{.i18n.Tr "admin.config.cookie_name"}}</dt>
<dd>{{.SessionConfig.CookieName}}</dd>
<dt>{{.i18n.Tr "admin.config.gc_interval_time"}}</dt>