AccountEventKind enumeration
namespace: Serenity.Extensions assembly: Serenity.Extensions
What happened to an account, see AccountEvent.
public enum AccountEventKind
Values
| name | value | description |
|---|---|---|
| PasswordChanged | 1 |
The password was changed, by the user, an administrator, or a reset link. |
| EmailChanged | 2 |
The email address was changed, from OldValue to NewValue. |
| UsernameChanged | 3 |
The username was changed, from OldValue to NewValue. |
| TwoFactorEnabled | 4 |
A two-factor authentication method was set up, see Method. |
| TwoFactorDisabled | 5 |
A two-factor authentication method was removed, see Method. |
| TwoFactorReset | 6 |
All the two-factor authentication methods were removed by an administrator, e.g. for a lost device. |
| SignedIn | 20 |
The user signed in, with Method, e.g. "Password", "Google", or "Token" for the password grant of the token endpoint. |
| SignInFailed | 21 |
A sign-in failed, for Reason, see SignInFailureReasons. Without a user when the username is not known, which is not stored, as it may be a password typed in the wrong box. |
| SignedOut | 22 |
The user signed out. |
| Elevated | 23 |
The user confirmed the password for the sensitive actions, see IElevationHandler. |
| ElevationFailed | 24 |
The user entered a wrong password to confirm a sensitive action. |
| PasswordResetRequested | 25 |
A link to reset the password was emailed to the user. |
| SessionsRevoked | 26 |
Sessions of the user were signed out, why in Reason (an AccountSessionEndReason), and how many in NewValue. |
| ImpersonationStarted | 27 |
Someone began to impersonate the user, who is in ActorUserId. |
| ImpersonationEnded | 28 |
An impersonation of the user ended, by its impersonator, or for Reason, e.g. its time was up. |
| InvitationSent | 29 |
Someone was invited to sign up, to the email address in NewValue (and Email), by ActorUserId; there is no user yet. A resend is one too. |
| InvitationAccepted | 30 |
The user signed up with an invitation, of the user in NewValue; the Reason is "RolesDropped" when the inviter could no longer give some of its roles. |
| InvitationRevoked | 31 |
An invitation to the email address in NewValue was revoked, by ActorUserId. |
See Also
- Source: AccountEventKind.cs