diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-10-13 20:33:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 20:33:01 +0300 |
commit | e34e6d2f9fefaf14831c0d1d983a2444eb365216 (patch) | |
tree | 830aede475884a213914e90ef0609aa20dd88f32 /lib/Controller | |
parent | a1cb44131c831c60b9e20d30bc1c2ef77ee61989 (diff) | |
parent | 4184aa9fa8bbe0c7316aec702fc1121457bc603c (diff) |
Merge pull request #466 from nextcloud/bugfix/log-invalid-user-id
Add checked user id to InvalidArgumentException
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/SAMLController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php index d04a60f4..40aac3f4 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) { |