0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 02:14:06 -05:00
forgejo/models/user
JakobDev d89003cc1b Fix API leaking Usermail if not logged in (#25097)
The API should only return the real Mail of a User, if the caller is
logged in. The check do to this don't work. This PR fixes this. This not
really a security issue, but can lead to Spam.

---------

Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit ea385f5d39)
2023-08-05 11:43:54 +00:00
..
avatar.go
badge.go Remove most path-based golangci exclusions (#24214) 2023-04-19 22:08:01 -04:00
block.go [MODERATION] add user blocking API 2023-07-17 00:26:42 +02:00
block_test.go [MODERATION] add user blocking API 2023-07-17 00:26:42 +02:00
email_address.go
email_address_test.go
error.go Refactor rename user and rename organization (#24052) 2023-05-21 23:13:47 +08:00
external_login_user.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
follow.go [MODERATION] organization blocking a user (#802) 2023-07-17 00:26:42 +02:00
follow_test.go
list.go
main_test.go
must_change_password.go
openid.go
openid_test.go
redirect.go Fix bug when change user name (#25637) (#25646) 2023-07-03 14:23:35 +03:00
redirect_test.go
search.go
setting.go Add Debian package registry (#24426) 2023-05-02 12:31:35 -04:00
setting_keys.go Show outdated comments in files changed tab (#24936) (#25428) 2023-06-22 08:34:42 +00:00
setting_test.go
user.go Fix API leaking Usermail if not logged in (#25097) 2023-08-05 11:43:54 +00:00
user_system.go [BRANDING] reserve forgejo-actions username 2023-07-17 00:25:56 +02:00
user_test.go [MODERATION] organization blocking a user (#802) 2023-07-17 00:26:42 +02:00
user_update.go