Class UserLockedNotification
Notification that is published after a user account has been locked.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class UserLockedNotification : UserNotification, INotification
Remarks
This notification is useful for audit logging and security monitoring purposes. A user account may be locked after too many failed login attempts or by an administrator.
Constructors
View SourceUserLockedNotification(string, string?, string)
Initializes a new instance of the UserLockedNotification class.
Declaration
public UserLockedNotification(string ipAddress, string? affectedUserId, string performingUserId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | ipAddress | The source IP address associated with the lock. |
| string | affectedUserId | The ID of the user whose account was locked. |
| string | performingUserId | The ID of the user or system that locked the account. |