1
0
Fork 0
forked from forgejo/forgejo

Add option to set language in admin user view (#28449)

![image](be7e3f92-af3f-4628-b4ed-abf6439687f3)
`/admin/users/<UserID>/edit`

![image](906af0dd-cceb-4ed9-9cd9-32c71ae1bf71)
`/admin/users/<UserID>`

---
*Sponsored by Kithara Software GmbH*

(cherry picked from commit e3e6569c5fd8c69aa65384e6d1636cc14b23a32b)
This commit is contained in:
6543 2024-03-02 22:55:02 +01:00 committed by Earl Warren
parent 1e29bccddb
commit 318634ef74
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 25 additions and 0 deletions

View file

@ -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