We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 547ba64 + e52442e commit 4e0ba3eCopy full SHA for 4e0ba3e
1 file changed
lib/base.php
@@ -812,7 +812,7 @@ public static function registerCleanupHooks() {
812
// NOTE: This will be replaced to use OCP
813
$userSession = self::$server->getUserSession();
814
$userSession->listen('\OC\User', 'postLogin', function () use ($userSession) {
815
- if (!defined('PHPUNIT_RUN')) {
+ if (!defined('PHPUNIT_RUN') && $userSession->isLoggedIn()) {
816
// reset brute force delay for this IP address and username
817
$uid = \OC::$server->getUserSession()->getUser()->getUID();
818
$request = \OC::$server->getRequest();
0 commit comments