mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 11:01:49 +01:00
45fa9e5ae9
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> |
||
---|---|---|
.. | ||
fixtures | ||
avatar.go | ||
badge.go | ||
block.go | ||
block_test.go | ||
email_address.go | ||
email_address_test.go | ||
error.go | ||
external_login_user.go | ||
federated_user.go | ||
federated_user_test.go | ||
follow.go | ||
follow_test.go | ||
list.go | ||
main_test.go | ||
must_change_password.go | ||
openid.go | ||
openid_test.go | ||
redirect.go | ||
redirect_test.go | ||
search.go | ||
setting.go | ||
setting_keys.go | ||
setting_test.go | ||
user.go | ||
user_repository.go | ||
user_system.go | ||
user_test.go | ||
user_update.go |