Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IForgotPasswordUriProvider

    Provides functionality to create forgot password URIs for users.

    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IForgotPasswordUriProvider

    Methods

    View Source

    CanCreateForgotPasswordUriAsync()

    Determines whether forgot password URIs can currently be created, regardless of the user they are for.

    Declaration
    Task<Attempt<UserOperationStatus>> CanCreateForgotPasswordUriAsync()
    Returns
    Type Description
    Task<Attempt<UserOperationStatus>>

    A successful attempt, or a failed attempt with the reason URIs cannot be created.

    Remarks

    This is checked before the user is looked up, so the outcome must not depend on any particular user.

    View Source

    CreateForgotPasswordUriAsync(IUser)

    Creates a forgot password URI for the specified user.

    Declaration
    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.

    Remarks

    Failures that do not depend on the user should also be reported by CanCreateForgotPasswordUriAsync(), so they are reported the same way whether or not the email belongs to a user.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX