forgejo/modules
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
..
actions
activitypub
analyze
auth Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
avatar
base
cache Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
charset Fix isAllowed of escapeStreamer (#22814) 2023-02-09 20:51:36 +08:00
container
context Fix improper HTMLURL usages in Go code (#22839) 2023-02-11 14:34:11 +08:00
csv
doctor
emoji
eventsource
generate
git Remember to attach the parent tree when converting TreeEntry() -> Tree() (#22902) 2023-02-14 21:23:04 +00:00
gitgraph Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
graceful
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer Make issue and code search support camel case (#22829) 2023-02-12 18:09:03 +08:00
issue/template
json
lfs escape filename when assemble URL (#22850) 2023-02-12 09:31:14 +08:00
log
markup Move IsReadmeFile* from modules/markup/ to modules/util (#22877) 2023-02-13 15:01:09 -05:00
mcaptcha
metrics include build info in Prometheus metrics (#22819) 2023-02-08 19:54:01 +02:00
migration Fix restore repo bug, clarify the problem of ForeignIndex (#22776) 2023-02-07 09:18:52 +08:00
mirror
nosql
notification
options
packages Use import of OCI structs (#22765) 2023-02-06 10:07:09 +00:00
paginator
password
pprof
private
process
proxy Use proxy for pull mirror (#22771) 2023-02-11 08:39:50 +08:00
proxyprotocol
public
queue
recaptcha
references
regexplru
repository Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
secret
session
setting
sitemap
ssh
storage
structs Allow custom "created" timestamps in user creation API (#22549) 2023-02-16 10:32:01 -06:00
svg
sync
system
templates Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
test
timeutil
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util Move IsReadmeFile* from modules/markup/ to modules/util (#22877) 2023-02-13 15:01:09 -05:00
validation Map OIDC groups to Orgs/Teams (#21441) 2023-02-08 14:44:42 +08:00
watcher
web Map OIDC groups to Orgs/Teams (#21441) 2023-02-08 14:44:42 +08:00
webhook