Add checked user id to InvalidArgumentException

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-10-09 08:39:37 +02:00
parent aa30b13666
commit 4184aa9fa8
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 1 deletions

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