Skip to content

Commit 630f234

Browse files
adelowolafriks
authored andcommitted
Add flash message after an account has been successfully activated (#4510)
* added new locale text
1 parent 32f2559 commit 630f234

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ sign_up_now = Need an account? Register now.
203203
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.
204204
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.
205205
active_your_account = Activate Your Account
206+
account_activated = Account has been activated
206207
prohibit_login = Sign In Prohibited
207208
prohibit_login_desc = Your account is prohibited to sign in, please contact your site administrator.
208209
resent_limit_prompt = You have already requested an activation email recently. Please wait 3 minutes and try again.

routers/user/auth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ func Activate(ctx *context.Context) {
10351035

10361036
ctx.Session.Set("uid", user.ID)
10371037
ctx.Session.Set("uname", user.Name)
1038+
ctx.Flash.Success(ctx.Tr("auth.account_activated"))
10381039
ctx.Redirect(setting.AppSubURL + "/")
10391040
return
10401041
}

0 commit comments

Comments
 (0)