btcpayserver/BTCPayServer/Hosting
d11n e43b4ed540
Onboarding: Invite new users (#5714)
* Server Users: More precise message when inviting users

This lets the admin who invited a new user know whether or not an email has been sent. If the SMTP server hasn't been set up, they need to share the invite link with the user.

* Onboarding: Invite new users

- Separates the user self-registration and invite cases
- Adds invitation email for users created by the admin
- Adds invitation tokens to verify user was invited
- Adds handler action for invite links
- Refactors `UserEventHostedService`

* Remove duplicate status message from views that use the wizard layout

* Auto-approve users created by an admin

* Notify admins via email if a new account requires approval

* Update wording

* Fix update user error

* Fix redirect to email confirmation in invite action

* Fix precondition checks after signup

* Improve admin notification

Send notification only if the user does not require email confirmation or when they confirmed their email address. Rationale: We want to inform admins only about qualified users and not annoy them with bot registrations.

* Allow approval alongside resending confirm email

* Use user email in log messages instead of ID

* Prevent unnecessary notification after email confirmation

* Use ApplicationUser type explicitly

* Fix after rebase

* Refactoring: Do not subclass UserRegisteredEvent
2024-02-28 20:43:18 +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 HTML Sanitizer updates (#5736) 2024-02-21 20:53:24 +01: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 Onboarding: Invite new users (#5714) 2024-02-28 20:43:18 +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