Class EmailUserForgotPasswordSender
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Security
Assembly: Umbraco.Infrastructure.dll
Syntax
public class EmailUserForgotPasswordSender : IUserForgotPasswordSender
Constructors
View SourceEmailUserForgotPasswordSender(IEmailSender, ILocalizedTextService, IOptionsMonitor<GlobalSettings>, IOptionsMonitor<SecuritySettings>)
Declaration
public EmailUserForgotPasswordSender(IEmailSender emailSender, ILocalizedTextService localizedTextService, IOptionsMonitor<GlobalSettings> globalSettings, IOptionsMonitor<SecuritySettings> securitySettings)
Parameters
| Type | Name | Description |
|---|---|---|
| IEmailSender | emailSender | |
| ILocalizedTextService | localizedTextService | |
| IOptionsMonitor<GlobalSettings> | globalSettings | |
| IOptionsMonitor<SecuritySettings> | securitySettings |
Methods
View SourceCanSend()
Determines whether the sender is configured and able to send messages.
Declaration
public bool CanSend()
Returns
| Type | Description |
|---|---|
| bool |
|
SendForgotPassword(UserForgotPasswordMessage)
Sends a forgot password message to the user.
Declaration
public Task SendForgotPassword(UserForgotPasswordMessage messageModel)
Parameters
| Type | Name | Description |
|---|---|---|
| UserForgotPasswordMessage | messageModel |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |