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 Remove urls from translations (#31950) 2024-09-12 17:28:58 +05:00
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
shared
user fix: extend forgejo_auth_token table 2024-11-15 11:33:17 +01:00
base.go Fix panic in storageHandler (#27446) 2023-10-06 13:23:14 +00:00
githttp.go
goget.go
home.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-03-06 12:10:44 +08:00
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 Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00