From b93568cce4717abd97f1f92341ce9fdf331a7e98 Mon Sep 17 00:00:00 2001 From: Jonas Östanbäck Date: Mon, 29 May 2017 09:35:47 +0200 Subject: xxx_active_code_live setting in printed in hours and minutes instead … (#1814) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * xxx_active_code_live setting in printed in hours and minutes instead of just hours * Update app.ini description of xxx_code_lives settings --- routers/user/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/user/setting.go') diff --git a/routers/user/setting.go b/routers/user/setting.go index 4fff19ef63..8fa9834167 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -297,7 +297,7 @@ func SettingsEmailPost(ctx *context.Context, form auth.AddEmailForm) { if err := ctx.Cache.Put("MailResendLimit_"+ctx.User.LowerName, ctx.User.LowerName, 180); err != nil { log.Error(4, "Set cache(MailResendLimit) fail: %v", err) } - ctx.Flash.Info(ctx.Tr("settings.add_email_confirmation_sent", email.Email, setting.Service.ActiveCodeLives/60)) + ctx.Flash.Info(ctx.Tr("settings.add_email_confirmation_sent", email.Email, base.MinutesToFriendly(setting.Service.ActiveCodeLives))) } else { ctx.Flash.Success(ctx.Tr("settings.add_email_success")) } -- cgit v1.2.3