-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds events constants and updates readme examples to use them. Fixes #20
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
/build | ||
.coverage | ||
/htmlcov | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Record when a user succesfully logs in. | ||
LOGIN_SUCCEEDED = '$login.succeeded' | ||
# Record when a user failed to log in. | ||
LOGIN_FAILED = '$login.failed' | ||
# Record when a user logs out. | ||
LOGOUT_SUCCEEDED = '$logout.succeeded' | ||
# Record when a user updated their profile (including password, email, phone, etc). | ||
PROFILE_UPDATE_SUCCEEDED = '$profile_update.succeeded' | ||
# Record errors when updating profile. | ||
PROFILE_UPDATE_FAILED = '$profile_update.failed' | ||
# Capture account creation, both when a user signs up as well as when created manually | ||
# by an administrator. | ||
REGISTRATION_SUCCEEDED = '$registration.succeeded' | ||
# Record when an account failed to be created. | ||
REGISTRATION_FAILED = '$registration.failed' | ||
# The user completed all of the steps in the password reset process and the password was | ||
# successfully reset.Password resets do not required knowledge of the current password. | ||
PASSWORD_RESET_SUCCEEDED = '$password_reset.succeeded' | ||
# Use to record when a user failed to reset their password. | ||
PASSWORD_RESET_FAILED = '$password_reset.failed' | ||
# The user successfully requested a password reset. | ||
PASSWORD_RESET_REQUEST_SUCCCEEDED = '$password_reset_request.succeeded' | ||
# The user failed to request a password reset. | ||
PASSWORD_RESET_REQUEST_FAILED = '$password_reset_request.failed' | ||
# User account has been reset. | ||
INCIDENT_MITIGATED = '$incident.mitigated' | ||
# User confirmed malicious activity. | ||
REVIEW_ESCALATED = '$review.escalated' | ||
# User confirmed safe activity. | ||
REVIEW_RESOLVED = '$review.resolved' | ||
# Record when a user is prompted with additional verification, such as two-factor | ||
# authentication or a captcha. | ||
CHALLENGE_REQUESTED = '$challenge.requested' | ||
# Record when additional verification was successful. | ||
CHALLENGE_SUCCEEDED = '$challenge.succeeded' | ||
# Record when additional verification failed. | ||
CHALLENGE_FAILED = '$challenge.failed' |