Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ITwoFactorLoginRepository

    Represents a repository for ITwoFactorLogin entities.

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ITwoFactorLoginRepository : IReadRepository<int, ITwoFactorLogin>, IWriteRepository<ITwoFactorLogin>, IRepository

    Methods

    View Source

    DeleteUserLoginsAsync(Guid)

    Deletes all two-factor login records for a user or member.

    Declaration
    Task<bool> DeleteUserLoginsAsync(Guid userOrMemberKey)
    Parameters
    Type Name Description
    Guid userOrMemberKey

    The unique key of the user or member.

    Returns
    Type Description
    Task<bool>

    true if records were deleted; otherwise, false.

    View Source

    DeleteUserLoginsAsync(Guid, string)

    Deletes two-factor login records for a specific provider for a user or member.

    Declaration
    Task<bool> DeleteUserLoginsAsync(Guid userOrMemberKey, string providerName)
    Parameters
    Type Name Description
    Guid userOrMemberKey

    The unique key of the user or member.

    string providerName

    The name of the provider.

    Returns
    Type Description
    Task<bool>

    true if records were deleted; otherwise, false.

    View Source

    GetByUserOrMemberKeyAsync(Guid)

    Gets all two-factor login records for a user or member.

    Declaration
    Task<IEnumerable<ITwoFactorLogin>> GetByUserOrMemberKeyAsync(Guid userOrMemberKey)
    Parameters
    Type Name Description
    Guid userOrMemberKey

    The unique key of the user or member.

    Returns
    Type Description
    Task<IEnumerable<ITwoFactorLogin>>

    A collection of two-factor login records.

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