summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-19 15:26:04 -0400
committerUnknwon <u@gogs.io>2015-03-19 15:26:04 -0400
commit1cb57b1a440373cec4fcca00aa43ad9000b9b0bb (patch)
tree0d73f35d9a1634cebb5beb2213ab1f87c3a18559 /routers/user
parent8f0f845b14cd35ee98ecff148ccfddbcfbaef83f (diff)
downloadgitea-1cb57b1a440373cec4fcca00aa43ad9000b9b0bb.tar.gz
gitea-1cb57b1a440373cec4fcca00aa43ad9000b9b0bb.zip
#1094: fix locale
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go
index 8d8ad0ad8e..20e6c06035 100644
--- a/routers/user/setting.go
+++ b/routers/user/setting.go
@@ -218,7 +218,7 @@ func SettingsEmailPost(ctx *middleware.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.Success(ctx.Tr("settings.add_email_success_confirmation_email_sent"))
+ ctx.Flash.Info(ctx.Tr("settings.add_email_confirmation_sent", cleanEmail, setting.Service.ActiveCodeLives/60))
} else {
ctx.Flash.Success(ctx.Tr("settings.add_email_success"))
}