forgejo/routers/api/v1/user
KN4CK3R f8b471ace1
Unify user update methods (#28733)
Fixes #28660
Fixes an admin api bug related to `user.LoginSource`
Fixed `/user/emails` response not identical to GitHub api

This PR unifies the user update methods. The goal is to keep the logic
only at one place (having audit logs in mind). For example, do the
password checks only in one method not everywhere a password is updated.

After that PR is merged, the user creation should be next.
2024-02-04 13:29:09 +00:00
..
action.go
app.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
avatar.go
email.go Unify user update methods (#28733) 2024-02-04 13:29:09 +00:00
follower.go
gpg_key.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
helper.go
hook.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
key.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
repo.go Replace more db.DefaultContext (#27628) 2023-10-15 17:46:06 +02:00
runners.go Add get actions runner registration token for API routes, repo, org, user and global level (#27144) 2023-12-27 07:57:54 +00:00
settings.go Unify user update methods (#28733) 2024-02-04 13:29:09 +00:00
star.go
user.go Enable system users search via the API (#28013) 2023-11-13 15:31:38 +01:00
watch.go