This repository has been archived on 2023-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
gitea/routers
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
..
api/v1 Return updated repository when changing repository using API (#16420) 2021-07-13 20:31:59 +01:00
common Support custom mime type mapping for text files (#16304) 2021-06-30 17:31:54 -04:00
install just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
private Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
utils just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
web Fix activation of primary email addresses (#16385) 2021-07-13 22:59:27 +02:00
init.go Add LRU mem cache implementation (#16226) 2021-07-10 23:54:15 +02:00