forgejo/templates
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
..
admin Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
api/packages/pypi
base Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
code Remove Fomantic-UI's .hidden CSS class for menu elements (#22895) 2023-02-14 19:53:54 +08:00
custom
explore Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
mail Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2023-02-06 12:09:18 -06:00
org Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
package Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
projects Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
repo First step to refactor the .hide to .gt-hidden (#22916) 2023-02-16 20:07:21 +08:00
shared Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
status Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
swagger Allow custom "created" timestamps in user creation API (#22549) 2023-02-16 10:32:01 -06:00
user Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
home.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
install.tmpl Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
post-install.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00