mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
* Use same name as other structs. * Sync with normal forms. * Edit description with API. * Workaround for nil value.
This commit is contained in:
1 parent
0590176a23
commit
8c8471e754
5 files changed
+22
-14
No files matched your search
@@ -203,6 +203,9 @@ func EditUser(ctx *context.APIContext) {
|
||||
if form.Location != nil {
|
||||
u.Location = *form.Location
|
||||
}
|
||||
if form.Description != nil {
|
||||
u.Description = *form.Description
|
||||
}
|
||||
if form.Active != nil {
|
||||
u.IsActive = *form.Active
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user