mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-04 10:03:42 +02:00
Merge pull request #466 from nextcloud/bugfix/log-invalid-user-id
Add checked user id to InvalidArgumentException
This commit is contained in:
commit
e34e6d2f9f
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue