btcpayserver/BTCPayServer/Views/UIAccount
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
..
_ViewImports.cshtml Move TagHelpers to Abstractions (#3975) 2022-07-22 21:58:25 +09:00
CheatPermissions.cshtml Adapt cookie auth to work with same API permission system (#4595) 2023-03-20 10:46:46 +09:00
ForgotPassword.cshtml Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
ForgotPasswordConfirmation.cshtml Refactor signed out action views (login, register, etc.) (#3333) 2022-01-21 11:10:03 +09:00
Lockout.cshtml Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
Login.cshtml Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
LoginWith2fa.cshtml UI: Form validation summary matches alert style (#5576) 2023-12-21 23:43:12 +09:00
LoginWithFido2.cshtml Unify 2FA login boxes (#4506) 2023-01-09 16:38:03 +01:00
LoginWithLNURLAuth.cshtml Unify 2FA login boxes (#4506) 2023-01-09 16:38:03 +01:00
LoginWithRecoveryCode.cshtml Use simple layout for 2FA views 2022-03-03 13:43:22 +01:00
Register.cshtml Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
SecondaryLogin.cshtml Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
SetPassword.cshtml Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
SignedOut.cshtml