mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
371b33a2e1
* This refactors the email sending so that all the logic related to users and emails are now contained in one location. * The Reset password screen has been updated from its ugly plain self to use the same layout as the login. * An admin can now create a new account without specifying a password. A link is generated that can be given to the intended user to configure the password. If emails are configured, it also sends an email * An admin can now create accounts that still require the user to verify their if the setting is enabled from the server settings. A link is generated that can be given to the intended user to configure the password. If emails are configured, it also sends an email. * The above features can be used in conjunction: An email will have to verify their email through a link. Once verified, the user is redirected to setting the password. * When an email has been verified OR a password has been set, users are now redirected to the login page with the email filled in and a success status message shown instead of a dedicated thank you page.
14 lines
322 B
C#
14 lines
322 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Data;
|
|
|
|
namespace BTCPayServer.Events
|
|
{
|
|
public class UserPasswordResetRequestedEvent
|
|
{
|
|
public ApplicationUser User { get; set; }
|
|
public Uri RequestUri { get; set; }
|
|
public TaskCompletionSource<Uri> CallbackUrlGenerated;
|
|
}
|
|
}
|