]> source.dussan.org Git - gitea.git/commit
Always store primary email address into email_address table and also the state (...
authorLunny Xiao <xiaolunwen@gmail.com>
Tue, 8 Jun 2021 03:52:51 +0000 (11:52 +0800)
committerGitHub <noreply@github.com>
Tue, 8 Jun 2021 03:52:51 +0000 (11:52 +0800)
commitb9d611e917d9bd10e0d8be8fc61e057d5936993c
treef70159ff5731da4b34312acfff8443dc3be61337
parent21cde5c439676d4aaa15dfc79505f364cc849ec0
Always store primary email address into email_address table and also the state (#15956)

* Always store primary email address into email_address table and also the state

* Add lower_email to not convert email to lower as what's added

* Fix fixture

* Fix tests

* Use BeforeInsert to save lower email

* Fix v180 migration

* fix tests

* Fix test

* Remove wrong submited codes

* Fix test

* Fix test

* Fix test

* Add test for v181 migration

* remove change user's email to lower

* Revert change on user's email column

* Fix lower email

* Fix test

* Fix test
integrations/api_gpg_keys_test.go
integrations/api_user_email_test.go
models/error.go
models/fixtures/email_address.yml
models/gpg_key.go
models/migrations/migrations.go
models/migrations/v181.go [new file with mode: 0644]
models/migrations/v181_test.go [new file with mode: 0644]
models/user.go
models/user_mail.go
models/user_mail_test.go