diff --git a/app/views/console/users/user.phtml b/app/views/console/users/user.phtml index 3d78e77f92..fd5a1264b5 100644 --- a/app/views/console/users/user.phtml +++ b/app/views/console/users/user.phtml @@ -323,7 +323,9 @@
- + + +
diff --git a/src/Appwrite/Detector/Detector.php b/src/Appwrite/Detector/Detector.php index 75c4387244..95daaba598 100644 --- a/src/Appwrite/Detector/Detector.php +++ b/src/Appwrite/Detector/Detector.php @@ -47,7 +47,18 @@ class Detector */ public function getClient(): array { - $client = $this->getDetector()->getClient(); + if (strpos($this->userAgent, 'Terminal') !== false) { + $version = explode(' ', $this->userAgent)[0]; + $version = explode('/', $version)[1]; + $client = [ + 'type' => 'desktop', + 'short_name' => 'terminal', + 'name' => 'Terminal', + 'version' => $version + ]; + } else { + $client = $this->getDetector()->getClient(); + } return [ 'clientType' => (isset($client['type'])) ? $client['type'] : '',