Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2020-10-13 20:33:01 +0300
committerGitHub <noreply@github.com>2020-10-13 20:33:01 +0300
commite34e6d2f9fefaf14831c0d1d983a2444eb365216 (patch)
tree830aede475884a213914e90ef0609aa20dd88f32
parenta1cb44131c831c60b9e20d30bc1c2ef77ee61989 (diff)
parent4184aa9fa8bbe0c7316aec702fc1121457bc603c (diff)
Merge pull request #466 from nextcloud/bugfix/log-invalid-user-id
Add checked user id to InvalidArgumentException
-rw-r--r--lib/Controller/SAMLController.php2
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) {