gitea/models/user
singuliere 367894adc8
add test coverage for original author conversion during migrations ()
* add test coverage for original author conversion during migrations

And create a function to factorize a code snippet that is repeated
five times and would otherwise be more difficult to test and maintain
consistently.

Signed-off-by: Loïc Dachary <loic@dachary.org>

* fix variable scope and int64 formatting

* add missing calls to remapExternalUser and fix misplaced %d

Co-authored-by: Loïc Dachary <loic@dachary.org>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
..
avatar.go Move user related model into models/user ()
email_address.go format with gofumpt ()
email_address_test.go Move more model into models/user ()
error.go Move user related model into models/user ()
external_login_user.go add test coverage for original author conversion during migrations ()
follow.go Remove NewSession method from db.Engine interface ()
follow_test.go Move user follow and openid into models/user/ ()
list.go Refactor auth package ()
main_test.go Move user related model into models/user ()
openid.go Move user follow and openid into models/user/ ()
openid_test.go Move user follow and openid into models/user/ ()
redirect.go Move EmailAddress & UserRedirect into models/user/ ()
redirect_test.go Decouple unit test code from business code ()
search.go Improve the comment for 2FA filter in admin panel ()
setting.go Add config options to hide issue events ()
setting_keys.go Add config options to hide issue events ()
setting_test.go Add config options to hide issue events ()
user.go Use base32 for 2FA scratch token ()
user_test.go Refactor auth package ()