Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ChangePasswordRequest.cs

using Nop.Core.Domain.Customers;

namespace Nop.Services.Customers;

/// 
/// Change password request
/// 
public partial class ChangePasswordRequest
{
    /// 
    /// Email
    /// 
    public string Email { get; set; }

    /// 
    /// A value indicating whether we should validate request
    /// 
    public bool ValidateRequest { get; set; }

    /// 
    /// Password format
    /// 
    public PasswordFormat NewPasswordFormat { get; set; }

    /// 
    /// New password
    /// 
    public string NewPassword { get; set; }

    /// 
    /// Old password
    /// 
    public string OldPassword { get; set; }

    /// 
    /// Hashed password format (e.g. SHA1, SHA512)
    /// 
    public string HashedPasswordFormat { get; set; }

    /// 
    /// Ctor
    /// 
    /// Email
    /// A value indicating whether we should validate request
    /// Password format
    /// New password
    /// Old password
    /// Hashed password format
    public ChangePasswordRequest(string email, bool validateRequest,
        PasswordFormat newPasswordFormat, string newPassword, string oldPassword = "",
        string hashedPasswordFormat = null)
    {
        Email = email;
        ValidateRequest = validateRequest;
        NewPasswordFormat = newPasswordFormat;
        NewPassword = newPassword;
        OldPassword = oldPassword;
        HashedPasswordFormat = hashedPasswordFormat;
    }
}