1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

templates/user/settings/emial.tmpl: little fix on UI

- routers/user: little code format
- conf/locale: update French locale
This commit is contained in:
Unknwon
2015-02-21 22:13:47 -05:00
parent 065f8d1f56
commit 1654e9ecab
8 changed files with 58 additions and 64 deletions

View File

@@ -351,15 +351,12 @@ func ActivateEmail(ctx *middleware.Context) {
// Verify code.
if email := models.VerifyActiveEmailCode(code, email_string); email != nil {
err := email.Activate()
if err != nil {
if err := email.Activate(); err != nil {
ctx.Handle(500, "ActivateEmail", err)
}
log.Trace("Email activated: %s", email.Email)
ctx.Flash.Success(ctx.Tr("settings.activate_email_success"))
}
ctx.Redirect(setting.AppSubUrl + "/user/settings/email")