Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-27 20:26:09 +01:00
forgejo/routers/api/v1
JakobDev 45fa9e5ae9 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>
2024-11-20 12:31:34 +00:00
..
activitypub fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
admin fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
misc feat: Add partial quoting 2024-10-26 19:15:43 +02:00
notify drop log.Error in ReadRepoNotifications 2024-03-24 07:12:31 +01:00
org fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:31:34 +00:00
packages remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
repo [FEAT]Allow changing git notes (#4753) 2024-11-18 22:56:17 +00:00
settings Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
shared feat(quota): Humble beginnings of a quota engine 2024-08-02 11:10:34 +02:00
swagger [FEAT]Allow changing git notes (#4753) 2024-11-18 22:56:17 +00:00
user refactor: remove redundant err declarations (#32381) 2024-11-05 09:33:15 +01:00
utils Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
api.go [FEAT]Allow changing git notes (#4753) 2024-11-18 22:56:17 +00:00