forgejo/modules/structs
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
..
activity.go
activitypub.go
admin_user.go fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
attachment.go
commit_status.go
commit_status_test.go
cron.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go fix: add label to issues and PR labeled/unlabeled events 2024-11-04 10:41:11 +01:00
issue.go
issue_comment.go
issue_label.go
issue_milestone.go
issue_reaction.go
issue_stopwatch.go
issue_test.go
issue_tracked_time.go
lfs_lock.go
mirror.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
miscellaneous.go
moderation.go
nodeinfo.go
notifications.go
org.go fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:31:34 +00:00
org_member.go
org_team.go
package.go
pull.go
pull_review.go
quota.go
release.go
repo.go
repo_actions.go
repo_branch.go
repo_collaborator.go
repo_commit.go
repo_compare.go
repo_file.go
repo_flags.go
repo_key.go
repo_note.go [FEAT]Allow changing git notes (#4753) 2024-11-18 22:56:17 +00:00
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go
repo_wiki.go
secret.go
settings.go
status.go
task.go style: reenable switch check 2024-08-18 15:19:01 +02:00
user.go
user_app.go
user_email.go fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
user_gpgkey.go
user_key.go
variable.go
visible_type.go
workflow.go