From 01b2df556c27b37a328d5cbef0c3a69ab712142c Mon Sep 17 00:00:00 2001 From: Robin Riclet Date: Tue, 3 Nov 2020 11:01:56 +0100 Subject: [PATCH] #3 Fixed Match error --- .../main/scala/org/thp/scalligraph/auth/MultiAuthSrv.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/scala/org/thp/scalligraph/auth/MultiAuthSrv.scala b/core/src/main/scala/org/thp/scalligraph/auth/MultiAuthSrv.scala index e47503ec..14dc21bf 100644 --- a/core/src/main/scala/org/thp/scalligraph/auth/MultiAuthSrv.scala +++ b/core/src/main/scala/org/thp/scalligraph/auth/MultiAuthSrv.scala @@ -60,10 +60,10 @@ class MultiAuthSrv(configuration: Configuration, appConfig: ApplicationConfig, a success => Right(success) ) }.fold({ - case Seq() => Seq(("", AuthorizationError("no authentication provider found"))) - case otherwise => otherwise + case Seq() => Left(Seq(("", AuthorizationError("no authentication provider found")))) + case otherwise => Left(otherwise) }, - a => a + a => Right(a) ) either match {