You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models/user
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".
1 year ago
..
avatar.go Add context cache as a request level cache (#22294) 1 year ago
badge.go Implement FSFE REUSE for golang files (#21840) 2 years ago
email_address.go Use ErrInvalidArgument in packages (#22268) 2 years ago
email_address_test.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years ago
external_login_user.go Implement FSFE REUSE for golang files (#21840) 2 years ago
follow.go Implement FSFE REUSE for golang files (#21840) 2 years ago
follow_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
list.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
must_change_password.go Add command to bulk set must-change-password (#22823) 1 year ago
openid.go Use ErrInvalidArgument in packages (#22268) 2 years ago
openid_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
redirect.go Implement FSFE REUSE for golang files (#21840) 2 years ago
redirect_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
search.go Implement FSFE REUSE for golang files (#21840) 2 years ago
setting.go Fix bug on user setting (#22539) 1 year ago
setting_keys.go Implement FSFE REUSE for golang files (#21840) 2 years ago
setting_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
user.go Allow custom "created" timestamps in user creation API (#22549) 1 year ago
user_system.go Implement actions (#21937) 1 year ago
user_test.go Allow custom "created" timestamps in user creation API (#22549) 1 year ago
user_update.go Implement FSFE REUSE for golang files (#21840) 2 years ago