gitea/routers/api/v1
Sybren aa45777c92
Allow custom "created" timestamps in user creation API (#22549)
Allow back-dating user creation via the `adminCreateUser` API operation.
`CreateUserOption` now has an optional field `created_at`, which can
contain a datetime-formatted string. If this field is present, the
user's `created_unix` database field will be updated to its value.

This is important for Blender's migration of users from Phabricator to
Gitea. There are many users, and the creation timestamp of their account
can give us some indication as to how long someone's been part of the
community.

The back-dating is done in a separate query that just updates the user's
`created_unix` field. This was the easiest and cleanest way I could
find, as in the initial `INSERT` query the field always is set to "now".
2023-02-16 10:32:01 -06:00
..
activitypub Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
admin Allow custom "created" timestamps in user creation API (#22549) 2023-02-16 10:32:01 -06:00
misc Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
notify Move `convert` package to services (#22264) 2022-12-29 10:57:15 +08:00
org Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
packages Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
repo Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
settings Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
user Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
utils Support system hook API (#14537) 2023-01-28 19:12:10 +01:00
api.go Map OIDC groups to Orgs/Teams (#21441) 2023-02-08 14:44:42 +08:00
auth.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00