From f183783baa67e7da0b0ae0909d3d6cb3045c0501 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Mon, 9 Sep 2024 17:05:16 -0400 Subject: 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 --- routers/web/admin/users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/web/admin/users.go') diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go index 34bb1dfe26..48ff8ea04b 100644 --- a/routers/web/admin/users.go +++ b/routers/web/admin/users.go @@ -177,7 +177,7 @@ func NewUserPost(ctx *context.Context) { u.MustChangePassword = form.MustChangePassword } - if err := user_model.AdminCreateUser(ctx, u, overwriteDefault); err != nil { + if err := user_model.AdminCreateUser(ctx, u, &user_model.Meta{}, overwriteDefault); err != nil { switch { case user_model.IsErrUserAlreadyExist(err): ctx.Data["Err_UserName"] = true -- cgit v1.2.3