Class UserPasswordChangedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a user's password is changed.
public sealed record UserPasswordChangedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<UserPasswordChangedEvent>
- Inheritance
-
UserPasswordChangedEvent
- Implements
- Inherited Members
Constructors
UserPasswordChangedEvent(string, string, DateTimeOffset, bool)
Integration event raised when a user's password is changed.
public UserPasswordChangedEvent(string UserId, string Email, DateTimeOffset ChangedAt, bool WasReset)
Parameters
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
ChangedAtDateTimeOffsetThe timestamp when the password was changed.
WasResetboolWhether the password was reset (vs. user-initiated change).
Properties
ChangedAt
The timestamp when the password was changed.
public DateTimeOffset ChangedAt { get; init; }
Property Value
The user's email address.
public string Email { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }
Property Value
WasReset
Whether the password was reset (vs. user-initiated change).
public bool WasReset { get; init; }