Class ChangingPasswordModel
A model representing the data required to set a member/user password depending on the provider installed.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class ChangingPasswordModel
Properties
View SourceId
The ID of the current user/member requesting the password change For users, required to allow changing password without the entire UserSave model
Declaration
[DataMember(Name = "id")]
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
NewPassword
The password value
Declaration
[DataMember(Name = "newPassword")]
public required string NewPassword { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OldPassword
The old password - used to change a password when: EnablePasswordRetrieval = false
Declaration
[DataMember(Name = "oldPassword")]
public string? OldPassword { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResetPasswordToken
The reset token that is required if changing your own password without the old password.
Declaration
public string? ResetPasswordToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |