Table of Contents

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

UserId string

The unique identifier of the user.

Email string

The user's email address.

ChangedAt DateTimeOffset

The timestamp when the password was changed.

WasReset bool

Whether the password was reset (vs. user-initiated change).

Properties

ChangedAt

The timestamp when the password was changed.

public DateTimeOffset ChangedAt { get; init; }

Property Value

DateTimeOffset

Email

The user's email address.

public string Email { get; init; }

Property Value

string

EventType

Gets the name of the event type for serialization and routing purposes.

public override string EventType { get; }

Property Value

string

UserId

The unique identifier of the user.

public string UserId { get; init; }

Property Value

string

WasReset

Whether the password was reset (vs. user-initiated change).

public bool WasReset { get; init; }

Property Value

bool