btcpayserver/BTCPayServer/Security
d11n 6290b0f3bf
Admins can approve registered users (#5647)
* Users list: Cleanups

* Policies: Flip registration settings

* Policies: Add RequireUserApproval setting

* Add approval to user

* Require approval on login and for API key

* API handling

* AccountController cleanups

* Test fix

* Apply suggestions from code review

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>

* Add missing imports

* Communicate login requirements to user on account creation

* Add login requirements to basic auth handler

* Cleanups and test fix

* Encapsulate approval logic in user service and log approval changes

* Send follow up "Account approved" email

Closes #5656.

* Add notification for admins

* Fix creating a user via the admin view

* Update list: Unify flags into status column, add approve action

* Adjust "Resend email" wording

* Incorporate feedback from code review

* Remove duplicate test server policy reset

---------

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
2024-01-31 14:45:54 +09:00
..
Bitpay Fix warnings (#5517) 2023-11-28 15:20:03 +01:00
GreenField Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
AuthenticationExtensions.cs Plugins: Allow creation of independent DbContexts 2020-11-18 12:27:26 +01:00
CookieAuthorizationHandler.cs Apps: Allow authenticated, non-owner users permissioned access (#5702) 2024-01-25 21:00:33 +09:00
SecurityExtensions.cs Run dotnet format (#3244) 2021-12-31 16:59:02 +09:00
ServerPolicies.cs Cleaning up bom from cs files 2020-06-28 21:44:35 -05:00