forgejo/routers/web
JakobDev da7e85c819 fix: Allow Organisations to remove the Email Address (#5517)
It is possible to set a Email for a Organization. This Email is optional and only used to be displayed on the profile page. However, once you set an EMail, you can no longer remove it. This PR fixes that.

While working on the tests, I found out, that the API returns a 500 when trying to set an invalid EMail. I fixed that too. It returns a 422 now.

Fixes #4567

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5517
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: JakobDev <jakobdev@gmx.de>
Co-committed-by: JakobDev <jakobdev@gmx.de>
(cherry picked from commit 45fa9e5ae9)
2024-11-20 12:32:36 +00:00
..
admin
auth Fix oauth2 error handle not return immediately (#32514) 2024-11-17 11:44:09 +01:00
devtest
events
explore
feed
healthcheck
misc
org fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:32:36 +00:00
repo fix: don't show private forks in forks list 2024-11-15 11:32:09 +01:00
shared
user fix: extend forgejo_auth_token table 2024-11-15 11:33:17 +01:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Disable Oauth check if oauth disabled (#32368) 2024-11-17 11:48:37 +01:00
webfinger.go