|
|
@ -274,8 +274,9 @@ func Activate(ctx *context.Context) { |
|
|
|
ctx.Data["Hours"] = setting.Service.ActiveCodeLives / 60 |
|
|
|
ctx.Data["Hours"] = setting.Service.ActiveCodeLives / 60 |
|
|
|
mailer.SendActivateAccountMail(ctx.Context, models.NewMailerUser(ctx.User)) |
|
|
|
mailer.SendActivateAccountMail(ctx.Context, models.NewMailerUser(ctx.User)) |
|
|
|
|
|
|
|
|
|
|
|
if err := ctx.Cache.Put("MailResendLimit_"+ctx.User.LowerName, ctx.User.LowerName, 180); err != nil { |
|
|
|
keyName := "MailResendLimit_" + ctx.User.LowerName |
|
|
|
log.Error(4, "Set cache(MailResendLimit) fail: %v", err) |
|
|
|
if err := ctx.Cache.Put(keyName, ctx.User.LowerName, 180); err != nil { |
|
|
|
|
|
|
|
log.Error(2, "Set cache '%s' fail: %v", keyName, err) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|