1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-01 18:46:11 +02:00
gitea/routers/web
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
..
admin Fix activation of primary email addresses (#16385) 2021-07-13 22:59:27 +02:00
dev
events
explore
org Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repo Add checkbox to delete pull branch after successful merge (#16049) 2021-07-13 01:26:25 +02:00
user Fix activation of primary email addresses (#16385) 2021-07-13 22:59:27 +02:00
base.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 2021-06-09 19:53:16 +02:00
goget.go
home.go
metrics.go
swagger_json.go
web.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00