summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLanre Adelowo <adelowomailbox@gmail.com>2018-07-25 18:54:56 +0100
committerLauris BH <lauris@nix.lv>2018-07-25 20:54:56 +0300
commit630f2342231c882f79dd159aee81b963131f80ba (patch)
tree5188d236050098d2f22ed582116287a98bedf961
parent32f25598b336fc2ba6bda9b1f70928b0694455ec (diff)
downloadgitea-630f2342231c882f79dd159aee81b963131f80ba.tar.gz
gitea-630f2342231c882f79dd159aee81b963131f80ba.zip
Add flash message after an account has been successfully activated (#4510)
* added new locale text
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--routers/user/auth.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 629d84e058..96d450b5ca 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -203,6 +203,7 @@ sign_up_now = Need an account? Register now.
confirmation_mail_sent_prompt = A new confirmation email has been sent to <b>%s</b>. Please check your inbox within the next %s to complete the registration process.
reset_password_mail_sent_prompt = A confirmation email has been sent to <b>%s</b>. Please check your inbox within the next %s to complete the password reset process.
active_your_account = Activate Your Account
+account_activated = Account has been activated
prohibit_login = Sign In Prohibited
prohibit_login_desc = Your account is prohibited to sign in, please contact your site administrator.
resent_limit_prompt = You have already requested an activation email recently. Please wait 3 minutes and try again.
diff --git a/routers/user/auth.go b/routers/user/auth.go
index 9a24108c73..b24c56745d 100644
--- a/routers/user/auth.go
+++ b/routers/user/auth.go
@@ -1035,6 +1035,7 @@ func Activate(ctx *context.Context) {
ctx.Session.Set("uid", user.ID)
ctx.Session.Set("uname", user.Name)
+ ctx.Flash.Success(ctx.Tr("auth.account_activated"))
ctx.Redirect(setting.AppSubURL + "/")
return
}