Class UserTwoFactorRequestedNotification
Notification that is published when two-factor authentication is requested for a user.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class UserTwoFactorRequestedNotification : INotification
Remarks
This notification can be used to implement custom two-factor authentication providers or to perform additional actions when 2FA is triggered.
Constructors
View SourceUserTwoFactorRequestedNotification(Guid)
Initializes a new instance of the UserTwoFactorRequestedNotification class.
Declaration
public UserTwoFactorRequestedNotification(Guid userKey)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | userKey | The unique key of the user requesting two-factor authentication. |
Properties
View SourceUserKey
Gets the unique key of the user requesting two-factor authentication.
Declaration
public Guid UserKey { get; }
Property Value
| Type | Description |
|---|---|
| Guid |