Search Results for

    Show / Hide Table of Contents
    View Source

    Class MemberPasswordHasher

    A password hasher for members

    Inheritance
    object
    PasswordHasher<MemberIdentityUser>
    UmbracoPasswordHasher<MemberIdentityUser>
    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class MemberPasswordHasher : UmbracoPasswordHasher<MemberIdentityUser>
    Remarks

    This will check for the ASP.NET Identity password hash flag before falling back to the legacy password hashing format ("HMACSHA256")

    Constructors

    View Source

    MemberPasswordHasher(LegacyPasswordSecurity, IJsonSerializer, IOptions<LegacyPasswordMigrationSettings>, ILogger<MemberPasswordHasher>)

    Declaration
    public MemberPasswordHasher(LegacyPasswordSecurity legacyPasswordHasher, IJsonSerializer jsonSerializer, IOptions<LegacyPasswordMigrationSettings> legacyMachineKeySettings, ILogger<MemberPasswordHasher> logger)
    Parameters
    Type Name Description
    LegacyPasswordSecurity legacyPasswordHasher
    IJsonSerializer jsonSerializer
    IOptions<LegacyPasswordMigrationSettings> legacyMachineKeySettings
    ILogger<MemberPasswordHasher> logger

    Methods

    View Source

    VerifyHashedPassword(MemberIdentityUser, string, string)

    Verifies a user's hashed password

    Declaration
    public override PasswordVerificationResult VerifyHashedPassword(MemberIdentityUser user, string hashedPassword, string providedPassword)
    Parameters
    Type Name Description
    MemberIdentityUser user
    string hashedPassword
    string providedPassword
    Returns
    Type Description
    PasswordVerificationResult
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when the correct hashing algorith cannot be determined

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