Merge pull request #466 from nextcloud/bugfix/log-invalid-user-id

Add checked user id to InvalidArgumentException
This commit is contained in:
blizzz 2020-10-13 19:33:01 +02:00 committed by GitHub
commit e34e6d2f9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {