summaryrefslogtreecommitdiffstats
path: root/routers/dev/template.go
diff options
context:
space:
mode:
authorJonas Östanbäck <cez81@users.noreply.github.com>2017-05-29 09:35:47 +0200
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-05-29 02:35:47 -0500
commitb93568cce4717abd97f1f92341ce9fdf331a7e98 (patch)
tree9234c805be991b8d1876bb4641d07b1f6f1251c8 /routers/dev/template.go
parente0c6ab2d44d17b72a7ea6f8b4c829c42baeaae3b (diff)
downloadgitea-b93568cce4717abd97f1f92341ce9fdf331a7e98.tar.gz
gitea-b93568cce4717abd97f1f92341ce9fdf331a7e98.zip
xxx_active_code_live setting in printed in hours and minutes instead … (#1814)
* xxx_active_code_live setting in printed in hours and minutes instead of just hours * Update app.ini description of xxx_code_lives settings
Diffstat (limited to 'routers/dev/template.go')
-rw-r--r--routers/dev/template.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/dev/template.go b/routers/dev/template.go
index fae85a3968..fc3ef9942e 100644
--- a/routers/dev/template.go
+++ b/routers/dev/template.go
@@ -18,8 +18,8 @@ func TemplatePreview(ctx *context.Context) {
ctx.Data["AppVer"] = setting.AppVer
ctx.Data["AppUrl"] = setting.AppURL
ctx.Data["Code"] = "2014031910370000009fff6782aadb2162b4a997acb69d4400888e0b9274657374"
- ctx.Data["ActiveCodeLives"] = setting.Service.ActiveCodeLives / 60
- ctx.Data["ResetPwdCodeLives"] = setting.Service.ResetPwdCodeLives / 60
+ ctx.Data["ActiveCodeLives"] = base.MinutesToFriendly(setting.Service.ActiveCodeLives)
+ ctx.Data["ResetPwdCodeLives"] = base.MinutesToFriendly(setting.Service.ResetPwdCodeLives)
ctx.Data["CurDbValue"] = ""
ctx.HTML(200, base.TplName(ctx.Params("*")))