diff options
| author | 2024-04-11 11:45:53 +0200 | |
|---|---|---|
| committer | 2024-04-11 11:45:53 +0200 | |
| commit | 9fb8a78f91adffd5f4d28df1270e407c25a7a16e (patch) | |
| tree | d68200744e28d07e75a52bb0c9f6593c86a38a91 /cmd/gotosocial/action/admin/account | |
| parent | [performance] massively improved ActivityPub delivery worker efficiency (#2812) (diff) | |
| download | gotosocial-9fb8a78f91adffd5f4d28df1270e407c25a7a16e.tar.xz | |
[feature] New user sign-up via web page (#2796)
* [feature] User sign-up form and admin notifs
* add chosen + filtered languages to migration
* remove stray comment
* chosen languages schmosen schmanguages
* proper error on local account missing
Diffstat (limited to 'cmd/gotosocial/action/admin/account')
| -rw-r--r-- | cmd/gotosocial/action/admin/account/account.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/gotosocial/action/admin/account/account.go b/cmd/gotosocial/action/admin/account/account.go index e2fd82642..42b324107 100644 --- a/cmd/gotosocial/action/admin/account/account.go +++ b/cmd/gotosocial/action/admin/account/account.go @@ -186,9 +186,13 @@ var Confirm action.GTSAction = func(ctx context.Context) error { user.Approved = func() *bool { a := true; return &a }() user.Email = user.UnconfirmedEmail user.ConfirmedAt = time.Now() + user.SignUpIP = nil return state.DB.UpdateUser( ctx, user, - "approved", "email", "confirmed_at", + "approved", + "email", + "confirmed_at", + "sign_up_ip", ) } |
