mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-18 17:00:02 +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:
parent
0590176a23
commit
8c8471e754
5 changed files with 22 additions and 14 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue