gitea/routers/api/v1/admin
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
..
adopt.go
cron.go
email.go Reduce usage of `db.DefaultContext` (#27073) 2023-09-14 17:09:32 +00:00
hooks.go
org.go Even more `db.DefaultContext` refactor (#27352) 2023-10-03 10:30:41 +00:00
repo.go
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
user.go Unify user update methods (#28733) 2024-02-04 13:29:09 +00:00