Table of Contents

Class LoginAttempt

Namespace
KadicAuth.Domain.Entities
Assembly
KadicAuth.Domain.dll
public class LoginAttempt
Inheritance
object
LoginAttempt

Properties

CreatedAt

public DateTime CreatedAt { get; }

Property Value

DateTime

Email

public string Email { get; }

Property Value

string

Id

public Guid Id { get; }

Property Value

Guid

IpAddress

public string? IpAddress { get; }

Property Value

string

Succeeded

public bool Succeeded { get; }

Property Value

bool

TenantId

public Guid? TenantId { get; }

Property Value

Guid?

UserAgent

public string? UserAgent { get; }

Property Value

string

Methods

CreateFailed(Guid?, string, string?, string?)

public static LoginAttempt CreateFailed(Guid? tenantId, string email, string? ipAddress, string? userAgent)

Parameters

tenantId Guid?
email string
ipAddress string
userAgent string

Returns

LoginAttempt

CreateSucceeded(Guid, string, string?, string?)

public static LoginAttempt CreateSucceeded(Guid tenantId, string email, string? ipAddress, string? userAgent)

Parameters

tenantId Guid
email string
ipAddress string
userAgent string

Returns

LoginAttempt