btcpayserver/BTCPayServer/Extensions
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
..
ActionLogicExtensions.cs Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
AuthorizationExtensions.cs Rename GreenField -> Greenfield 2022-01-14 13:46:04 +09:00
ControllerBaseExtensions.cs Add list count to user preferences cookie (#4637) 2023-02-15 11:04:17 +09:00
EmailSenderExtensions.cs Onboarding: Invite new users (#5714) 2024-02-28 20:43:18 +09:00
EnumExtensions.cs Run dotnet format (#3244) 2021-12-31 16:59:02 +09:00
ModelStateExtensions.cs Improve email settings validation and UX (#3891) 2022-06-23 13:41:52 +09:00
MoneyExtensions.cs potentially fix #5764 2024-02-19 13:01:08 +01:00
PSBTExtensions.cs GreenField API: Wallet API (#2246) 2021-03-11 21:34:52 +09:00
SettingsRepositoryExtensions.cs Boltcard integration (#5419) 2023-12-06 09:17:58 +09:00
SSHClientExtensions.cs Use ArgumentNullException.ThrowIfNull everywhere (#3239) 2021-12-28 17:39:54 +09:00
StoreExtensions.cs Add reporting feature (#5155) 2023-07-24 09:24:32 +09:00
StringExtensions.cs Run dotnet format (#3244) 2021-12-31 16:59:02 +09:00
UrlHelperExtensions.cs Onboarding: Invite new users (#5714) 2024-02-28 20:43:18 +09:00
UserExtensions.cs Start using JSONB column instead of app side compressed data (#4574) 2023-02-21 15:06:34 +09:00
UserPrefsCookie.cs Add list count to user preferences cookie (#4637) 2023-02-15 11:04:17 +09:00
WebHostExtensions.cs Plugins: Allow creation of independent DbContexts 2020-11-18 12:27:26 +01:00