Class MemberLoginFailedNotification
Notification that is published when a member login attempt fails.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class MemberLoginFailedNotification : MemberNotification, INotification
Remarks
This notification is useful for audit logging, security monitoring, and detecting potential
brute-force attacks. The MemberKey may be null if the
member could not be found for the given credentials.
Constructors
View SourceMemberLoginFailedNotification(string, Guid?, string)
Initializes a new instance of the MemberLoginFailedNotification class.
Declaration
public MemberLoginFailedNotification(string ipAddress, Guid? memberKey, string reason)
Parameters
| Type | Name | Description |
|---|---|---|
| string | ipAddress | The source IP address of the failed login attempt. |
| Guid? | memberKey | The key of the member whose login failed, or |
| string | reason | The reason the login attempt failed (e.g. "InvalidCredentials", "LockedOut", "NotAllowed", "MemberNotFound"). |
Properties
View SourceReason
Gets the reason the login attempt failed.
Declaration
public string Reason { get; }
Property Value
| Type | Description |
|---|---|
| string |