diff --git a/includes/Hooks.php b/includes/Hooks.php index 2f0911d..2eb6bf0 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -10,6 +10,7 @@ namespace LoginNotify; use EchoAttributeManager; use EchoEvent; +use EchoUserLocator; use MediaWiki\Auth\AuthenticationResponse; use User; @@ -40,7 +41,7 @@ class Hooks { $loginBase = [ EchoAttributeManager::ATTR_LOCATORS => [ - 'EchoUserLocator::locateEventAgent' + [ [ EchoUserLocator::class, 'locateArticleCreator' ] ], ], 'canNotifyAgent' => true, 'category' => 'login-fail',