diff options
author | 6543 <6543@obermui.de> | 2024-03-02 22:55:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 22:55:02 +0100 |
commit | e3e6569c5fd8c69aa65384e6d1636cc14b23a32b (patch) | |
tree | d43b84efecd46f4b57c9ce6a5558f9c5b2280078 /services/forms/admin.go | |
parent | 937e8b55149388840bbf6c4d7216495bc3dd2fe9 (diff) | |
download | gitea-e3e6569c5fd8c69aa65384e6d1636cc14b23a32b.tar.gz gitea-e3e6569c5fd8c69aa65384e6d1636cc14b23a32b.zip |
Add option to set language in admin user view (#28449)
![image](https://github.com/go-gitea/gitea/assets/24977596/be7e3f92-af3f-4628-b4ed-abf6439687f3)
`/admin/users/<UserID>/edit`
![image](https://github.com/go-gitea/gitea/assets/24977596/906af0dd-cceb-4ed9-9cd9-32c71ae1bf71)
`/admin/users/<UserID>`
---
*Sponsored by Kithara Software GmbH*
Diffstat (limited to 'services/forms/admin.go')
-rw-r--r-- | services/forms/admin.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/forms/admin.go b/services/forms/admin.go index f112013060..81276f8f46 100644 --- a/services/forms/admin.go +++ b/services/forms/admin.go @@ -41,6 +41,7 @@ type AdminEditUserForm struct { Password string `binding:"MaxSize(255)"` Website string `binding:"ValidUrl;MaxSize(255)"` Location string `binding:"MaxSize(50)"` + Language string `binding:"MaxSize(5)"` MaxRepoCreation int Active bool Admin bool |