mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Save initial signup information for users to aid in spam prevention (#31852)
This will allow instance admins to view signup pattern patterns for public instances. It is modelled after discourse, mastodon, and MediaWiki's approaches. Note: This has privacy implications, but as the above-stated open-source projects take this approach, especially MediaWiki, which I have no doubt looked into this thoroughly, it is likely okay for us, too. However, I would be appreciative of any feedback on how this could be improved. --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -89,7 +89,7 @@ func (source *Source) Authenticate(ctx context.Context, user *user_model.User, u | ||||
| 			IsActive:     optional.Some(true), | ||||
| 		} | ||||
|  | ||||
| 		err := user_model.CreateUser(ctx, user, overwriteDefault) | ||||
| 		err := user_model.CreateUser(ctx, user, &user_model.Meta{}, overwriteDefault) | ||||
| 		if err != nil { | ||||
| 			return user, err | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user