forgejo-federation/routers/web/user/setting
Meano 423a0fccb6
Fix activation of primary email addresses (#16385)
* fix: primary email cannot be activated

* Primary email should be activated together with user account when
'RegisterEmailConfirm' is enabled.

* To fix the existing error state. When 'RegisterEmailConfirm' is enabled, the
admin should have permission to modify the activations status of user email.
And the user should be allowed to send activation to primary email.

* Only judge whether email is primary from email_address table.

* Improve logging and refactor isEmailActive

Co-authored-by: zeripath <art27@cantab.net>
2021-07-13 22:59:27 +02:00
..
account.go Fix activation of primary email addresses (#16385) 2021-07-13 22:59:27 +02:00
account_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
adopt.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
applications.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
keys.go Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
main_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
oauth2.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
profile.go Make allowed Visiblity modes configurable for Users (#16271) 2021-06-27 19:47:35 +01:00
security.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
security_openid.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
security_twofa.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
security_u2f.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00