Class ForgotPasswordUriProvider
Inheritance
object
Namespace: Umbraco.Cms.Api.Management.Security
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class ForgotPasswordUriProvider : IForgotPasswordUriProvider
Constructors
View SourceForgotPasswordUriProvider(ICoreBackOfficeUserManager, IHostingEnvironment, IHttpContextAccessor)
Declaration
public ForgotPasswordUriProvider(ICoreBackOfficeUserManager userManager, IHostingEnvironment hostingEnvironment, IHttpContextAccessor httpContextAccessor)
Parameters
| Type | Name | Description |
|---|---|---|
| ICoreBackOfficeUserManager | userManager | |
| IHostingEnvironment | hostingEnvironment | |
| IHttpContextAccessor | httpContextAccessor |
Methods
View SourceCreateForgotPasswordUriAsync(IUser)
Creates a forgot password URI for the specified user.
Declaration
public Task<Attempt<Uri, UserOperationStatus>> CreateForgotPasswordUriAsync(IUser user)
Parameters
| Type | Name | Description |
|---|---|---|
| IUser | user | The user to create the forgot password URI for. |
Returns
| Type | Description |
|---|---|
| Task<Attempt<Uri, UserOperationStatus>> | An attempt containing the generated URI or an error status. |