Closed
Description
Gitea Version
v1.15.9
Git Version
2.25.1
Operating System
Ubuntu
How are you running Gitea?
Docker
Database
MySQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
For invalid argument on here which requires emailAddress.ID(int64)
, but passed emailAddress (EmailAddress)
therefore, internal server error occurred update user email from site administration page.
steps to recreate
- open site-administrating page
- edit some user email and save
gitea_1 | 2022/01/12 09:59:36 Started POST /admin/users/1 for 172.25.0.1:35752
gitea_1 | 2022/01/12 09:59:36 ...s/web/admin/users.go:345:EditUserPost() [E] UpdateUser: ID param models.EmailAddress{ID:1, UID:1, Email:"example@example.com", LowerEmail:"example@example.com", IsActivated:true, IsPrimary:false} is not supported
gitea_1 | 2022/01/12 09:59:36 Completed POST /admin/users/1 500 Internal Server Error in 3.0046ms
Screenshots
No response