Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Standardise extension hooks #88

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions code/AuditHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ protected function onAfterRestoreToStage()
/**
* Log successful login attempts.
*/
public function afterMemberLoggedIn()
protected function onAfterMemberLoggedIn()
{
$this->getAuditLogger()->info(sprintf(
'"%s" (ID: %s) successfully logged in',
Expand All @@ -328,7 +328,7 @@ protected function memberAutoLoggedIn()
/**
* Log failed login attempts.
*/
public function authenticationFailed($data)
protected function onAuthenticationFailed($data)
{
// LDAP authentication uses a "Login" POST field instead of Email.
$login = isset($data['Login'])
Expand All @@ -348,9 +348,9 @@ public function authenticationFailed($data)
/**
* Log failed login attempts when the email address doesn't map to an existing member record
*/
protected function authenticationFailedUnknownUser($data)
protected function onAuthenticationFailedUnknownUser($data)
{
$this->authenticationFailed($data);
$this->onAuthenticationFailed($data);
}

/**
Expand Down Expand Up @@ -388,7 +388,7 @@ protected function logPermissionDenied($statusCode, $member)
/**
* Log successful logout.
*/
public function afterMemberLoggedOut()
protected function onAfterMemberLoggedOut()
{
$this->getAuditLogger()->info(sprintf(
'"%s" (ID: %s) successfully logged out',
Expand Down
Loading