From 398f09a81650ba9ad25c59fa5c69e410eb58042c Mon Sep 17 00:00:00 2001 From: Dominik Zawadzki Date: Tue, 21 Feb 2017 18:45:26 +0100 Subject: [PATCH] Adding a security exception --- src/ZfcUser/Authentication/Adapter/Db.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ZfcUser/Authentication/Adapter/Db.php b/src/ZfcUser/Authentication/Adapter/Db.php index 3b59202a..967d63dc 100644 --- a/src/ZfcUser/Authentication/Adapter/Db.php +++ b/src/ZfcUser/Authentication/Adapter/Db.php @@ -75,6 +75,8 @@ public function authenticate(AuthenticationEvent $event) case 'email': $userObject = $this->getMapper()->findByEmail($identity); break; + default: + throw new \InvalidArgumentException('Given an unsupported value'); } }