forgejo/models/user
JakobDev ea385f5d39
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>
2023-07-31 01:18:38 +00:00
..
avatar.go
badge.go
email_address.go
email_address_test.go
error.go
external_login_user.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00: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) 2023-07-03 12:05:59 +02:00
redirect_test.go
search.go
setting.go
setting_keys.go
setting_test.go
user.go Fix API leaking Usermail if not logged in (#25097) 2023-07-31 01:18:38 +00:00
user_system.go
user_test.go
user_update.go