mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
Bug fix
This commit is contained in:
parent
f9fd972cbe
commit
5cb2d3d2e2
2 changed files with 5 additions and 0 deletions
|
@ -233,6 +233,10 @@ func Activate(ctx *middleware.Context) {
|
|||
code := ctx.Query("code")
|
||||
if len(code) == 0 {
|
||||
ctx.Data["IsActivatePage"] = true
|
||||
if ctx.User.IsActive {
|
||||
ctx.Error(404)
|
||||
return
|
||||
}
|
||||
// Resend confirmation e-mail.
|
||||
if base.Service.RegisterEmailConfirm {
|
||||
ctx.Data["Hours"] = base.Service.ActiveCodeLives / 60
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue