mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Bug fix
This commit is contained in:
		| @@ -16,6 +16,7 @@ There are some very good products in this category such as [gitlab](http://gitla | |||||||
| - Please see [Wiki](https://github.com/gogits/gogs/wiki) for project design, develop specification, change log and road map. | - Please see [Wiki](https://github.com/gogits/gogs/wiki) for project design, develop specification, change log and road map. | ||||||
| - See [Trello Broad](https://trello.com/b/uxAoeLUl/gogs-go-git-service) to follow the develop team. | - See [Trello Broad](https://trello.com/b/uxAoeLUl/gogs-go-git-service) to follow the develop team. | ||||||
| - Try it before anything? Go down to **Installation -> Install from binary** section!. | - Try it before anything? Go down to **Installation -> Install from binary** section!. | ||||||
|  | - Having troubles? Get help from [Troubleshooting](https://github.com/gogits/gogs/wiki/Troubleshooting). | ||||||
|  |  | ||||||
| ## Features | ## Features | ||||||
|  |  | ||||||
|   | |||||||
| @@ -233,6 +233,10 @@ func Activate(ctx *middleware.Context) { | |||||||
| 	code := ctx.Query("code") | 	code := ctx.Query("code") | ||||||
| 	if len(code) == 0 { | 	if len(code) == 0 { | ||||||
| 		ctx.Data["IsActivatePage"] = true | 		ctx.Data["IsActivatePage"] = true | ||||||
|  | 		if ctx.User.IsActive { | ||||||
|  | 			ctx.Error(404) | ||||||
|  | 			return | ||||||
|  | 		} | ||||||
| 		// Resend confirmation e-mail. | 		// Resend confirmation e-mail. | ||||||
| 		if base.Service.RegisterEmailConfirm { | 		if base.Service.RegisterEmailConfirm { | ||||||
| 			ctx.Data["Hours"] = base.Service.ActiveCodeLives / 60 | 			ctx.Data["Hours"] = base.Service.ActiveCodeLives / 60 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user