Skip to content

Commit

Permalink
API Standardise extension hooks (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 27, 2024
1 parent 58125b4 commit 8581f56
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 8581f56

Please sign in to comment.