Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbracoPasswordHasher<TUser>

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class UmbracoPasswordHasher<TUser> : PasswordHasher<TUser> where TUser : UmbracoIdentityUser
    Type Parameters
    Name Description
    TUser

    Constructors

    View Source

    UmbracoPasswordHasher(LegacyPasswordSecurity, IJsonSerializer)

    Declaration
    public UmbracoPasswordHasher(LegacyPasswordSecurity legacyPasswordSecurity, IJsonSerializer jsonSerializer)
    Parameters
    Type Name Description
    LegacyPasswordSecurity legacyPasswordSecurity
    IJsonSerializer jsonSerializer

    Properties

    View Source

    LegacyPasswordSecurity

    Declaration
    public LegacyPasswordSecurity LegacyPasswordSecurity { get; }
    Property Value
    Type Description
    LegacyPasswordSecurity

    Methods

    View Source

    HashPassword(TUser, String)

    Declaration
    public override string HashPassword(TUser user, string password)
    Parameters
    Type Name Description
    TUser user
    System.String password
    Returns
    Type Description
    System.String
    View Source

    VerifyHashedPassword(TUser, String, String)

    Verifies a user's hashed password

    Declaration
    public override PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword)
    Parameters
    Type Name Description
    TUser user
    System.String hashedPassword
    System.String providedPassword
    Returns
    Type Description
    PasswordVerificationResult
    Remarks

    This will check the user's current hashed password format stored with their user row and use that to verify the hash. This could be any hashes from the very old v4, to the older v6-v8, to the older aspnet identity and finally to the most recent

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UmbracoPasswordHasher(LegacyPasswordSecurity, IJsonSerializer)
    • Properties
      • LegacyPasswordSecurity
    • Methods
      • HashPassword(TUser, String)
      • VerifyHashedPassword(TUser, String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX