Use Rock.Client.UserLoginWithPlainTextPassword and set PlainTextPassword to set a new password as part of a api/UserLogins POST or PUT
Inheritance: UserLoginWithPlainTextPasswordEntity
 /// <summary>
 /// Copies the base properties from a source UserLoginWithPlainTextPassword object
 /// </summary>
 /// <param name="source">The source.</param>
 public void CopyPropertiesFrom(UserLoginWithPlainTextPassword source)
 {
     this.Id           = source.Id;
     this.ApiKey       = source.ApiKey;
     this.EntityTypeId = source.EntityTypeId;
     this.FailedPasswordAttemptCount = source.FailedPasswordAttemptCount;
     this.FailedPasswordAttemptWindowStartDateTime = source.FailedPasswordAttemptWindowStartDateTime;
     this.ForeignGuid = source.ForeignGuid;
     this.ForeignKey  = source.ForeignKey;
     this.IsConfirmed = source.IsConfirmed;
     this.IsLockedOut = source.IsLockedOut;
     this.IsOnLine    = source.IsOnLine;
     this.IsPasswordChangeRequired              = source.IsPasswordChangeRequired;
     this.LastActivityDateTime                  = source.LastActivityDateTime;
     this.LastLockedOutDateTime                 = source.LastLockedOutDateTime;
     this.LastLoginDateTime                     = source.LastLoginDateTime;
     this.LastPasswordChangedDateTime           = source.LastPasswordChangedDateTime;
     this.LastPasswordExpirationWarningDateTime = source.LastPasswordExpirationWarningDateTime;
     this.ModifiedAuditValuesAlreadyUpdated     = source.ModifiedAuditValuesAlreadyUpdated;
     this.Password                = source.Password;
     this.PersonId                = source.PersonId;
     this.PlainTextPassword       = source.PlainTextPassword;
     this.UserName                = source.UserName;
     this.CreatedDateTime         = source.CreatedDateTime;
     this.ModifiedDateTime        = source.ModifiedDateTime;
     this.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     this.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     this.Guid      = source.Guid;
     this.ForeignId = source.ForeignId;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Copies the base properties from a source UserLoginWithPlainTextPassword object
 /// </summary>
 /// <param name="source">The source.</param>
 public void CopyPropertiesFrom( UserLoginWithPlainTextPassword source )
 {
     this.Id = source.Id;
     this.ApiKey = source.ApiKey;
     this.EntityTypeId = source.EntityTypeId;
     this.FailedPasswordAttemptCount = source.FailedPasswordAttemptCount;
     this.FailedPasswordAttemptWindowStartDateTime = source.FailedPasswordAttemptWindowStartDateTime;
     this.IsConfirmed = source.IsConfirmed;
     this.IsLockedOut = source.IsLockedOut;
     this.IsOnLine = source.IsOnLine;
     this.LastActivityDateTime = source.LastActivityDateTime;
     this.LastLockedOutDateTime = source.LastLockedOutDateTime;
     this.LastLoginDateTime = source.LastLoginDateTime;
     this.LastPasswordChangedDateTime = source.LastPasswordChangedDateTime;
     this.LastPasswordExpirationWarningDateTime = source.LastPasswordExpirationWarningDateTime;
     this.Password = source.Password;
     this.PersonId = source.PersonId;
     this.PlainTextPassword = source.PlainTextPassword;
     this.UserName = source.UserName;
     this.Guid = source.Guid;
     this.ForeignId = source.ForeignId;
 }