forgejo/models/user
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
..
fixtures
avatar.go
badge.go
block.go
block_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
email_address.go fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:32:36 +00:00
email_address_test.go fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:32:36 +00:00
error.go
external_login_user.go allow synchronizing user status from OAuth2 login providers (#31572) 2024-07-22 15:44:13 +02:00
federated_user.go initial 2024-05-16 08:15:43 +02:00
federated_user_test.go initial 2024-05-16 08:15:43 +02:00
follow.go
follow_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
list.go
main_test.go
must_change_password.go
openid.go
openid_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
redirect.go
redirect_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
search.go
setting.go
setting_keys.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
setting_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
user.go fix: extend forgejo_auth_token table 2024-11-15 11:33:17 +01:00
user_repository.go initial 2024-05-16 08:15:43 +02:00
user_system.go activitypub: Implement an instance-wide actor 2024-08-05 10:50:26 +02:00
user_test.go fix: extend forgejo_auth_token table 2024-11-15 11:33:17 +01:00
user_update.go