0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-21 13:52:50 -05:00
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 For consistency make repo search sort options case sensitive (#31951) 2024-09-09 20:54:47 +02:00
feed fix: don't show truncated comments in RSS/Atom feeds 2024-10-22 16:50:57 +00:00
healthcheck Add health-check test 2024-04-06 00:34:55 +02:00
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 feat(UI): add package counter to repo/user/org overview pages 2024-07-31 12:40:24 +02:00
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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
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