Catch on user login.

This commit is contained in:
James Cole
2026-01-23 16:12:49 +01:00
parent b147c5abc6
commit a44f0f362f
11 changed files with 11 additions and 11 deletions

View File

@@ -44,6 +44,6 @@ class UserHasUsedBackupCode extends Event
return;
}
throw new InvalidArgumentException('User must be an instance of User.');
throw new InvalidArgumentException(sprintf('User cannot be an instance of %s.', get_class($user)));
}
}