btcpayserver/BTCPayServer/Hosting
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
..
BlockExplorerLinkStartupTask.cs Pluginify BTCPayNetworkProvider (#5331) 2023-11-29 18:51:40 +09:00
BTCpayMiddleware.cs Fix a bunch of minor bugs (#4983) 2023-05-19 08:41:21 +09:00
BTCPayServerServices.cs Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
GreenfieldMiddleware.cs Rename GreenField -> Greenfield 2022-01-14 13:46:04 +09:00
HeadersOverrideMiddleware.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
LowercaseTransformer.cs Use nicer urls, part2 (Fix #921) 2022-01-15 14:54:06 +09:00
MigrationStartupTask.cs Remove unused variables (#5669) 2024-01-18 09:47:39 +09:00
SkippableObjectValidatorProvider.cs Add Label and accountKeyPath to the on chain payment methods (#2166) 2020-12-28 13:59:01 +01:00
Startup.cs Remove unused variables (#5669) 2024-01-18 09:47:39 +09:00
ToPostgresMigrationStartupTask.cs Remove unused variables (#5669) 2024-01-18 09:47:39 +09:00
ValidateControllerNameTransformer.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00