From e884efa3fac79b4df7e7e0b51e9c4eef8be47051 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Tue, 23 Jun 2020 17:09:43 +0100
Subject: [PATCH] Issue #3149799 by mxr576, jungle: BasicAuth::authenticate()
 does not respect the implemented interface

---
 .../basic_auth/src/Authentication/Provider/BasicAuth.php        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php b/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php
index 67d100f52c11..0e306a5b3595 100644
--- a/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php
+++ b/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php
@@ -121,7 +121,7 @@ public function authenticate(Request $request) {
     }
     // Always register an IP-based failed login event.
     $this->flood->register('basic_auth.failed_login_ip', $flood_config->get('ip_window'));
-    return [];
+    return NULL;
   }
 
   /**
-- 
GitLab