Class ChangePasswordRequest
Represents a request to change a user's password, including required parameters and validation.
Inherited Members
Namespace: Innovt.Cloud.AWS.Cognito.Model
Assembly: Innovt.Cloud.AWS.Cognito.dll
Syntax
public class ChangePasswordRequest : RequestBase, IRequestBase, IValidatableObject
Properties
| Edit this page View SourceAccessToken
Gets or sets the access token associated with the user.
Declaration
[Required]
public string AccessToken { get; set; }
Property Value
Type | Description |
---|---|
string |
ConfirmProposedPassword
Gets or sets the confirmation of the proposed new password.
Declaration
[Required]
[StringLength(18, MinimumLength = 4)]
public string ConfirmProposedPassword { get; set; }
Property Value
Type | Description |
---|---|
string |
PreviousPassword
Gets or sets the user's previous password.
Declaration
[Required]
[StringLength(20, MinimumLength = 4)]
public string PreviousPassword { get; set; }
Property Value
Type | Description |
---|---|
string |
ProposedPassword
Gets or sets the proposed new password.
Declaration
[Required]
[StringLength(18, MinimumLength = 4)]
public string ProposedPassword { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceValidate(ValidationContext)
Validates the properties of the ChangePasswordRequest object.
Declaration
public override IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
ValidationContext | validationContext | The validation context. |
Returns
Type | Description |
---|---|
IEnumerable<ValidationResult> | An IEnumerable<T> containing validation results. |