forgejo/models/user
wxiaoguang 4fd8ac0653
Fix API leaking Usermail if not logged in (#25097) (#26350)
Backport #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: JakobDev <jakobdev@gmx.de>
Co-authored-by: silverwind <me@silverwind.io>
2023-08-06 20:11:39 +08:00
..
avatar.go
badge.go
email_address.go
email_address_test.go
error.go
external_login_user.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
follow.go
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
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) (#26350) 2023-08-06 20:11:39 +08:00
user_system.go
user_test.go Only validate changed columns when update user (#24867) 2023-05-24 07:30:55 +00:00
user_update.go