From 4184aa9fa8bbe0c7316aec702fc1121457bc603c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 9 Oct 2020 08:39:37 +0200 Subject: [PATCH] Add checked user id to InvalidArgumentException MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Controller/SAMLController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php index d04a60f..40aac3f 100644 --- a/lib/Controller/SAMLController.php +++ b/lib/Controller/SAMLController.php @@ -358,7 +358,7 @@ class SAMLController extends Controller { try { $user = $this->userManager->get($this->userBackend->getCurrentUserId()); if (!($user instanceof IUser)) { - throw new \InvalidArgumentException('User is not valid'); + throw new \InvalidArgumentException('User "' . $this->userBackend->getCurrentUserId() . '" is not valid'); } $firstLogin = $user->updateLastLoginTimestamp(); if($firstLogin) {