summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/user.go b/api/user.go
index 760f4faea..966223a5b 100644
--- a/api/user.go
+++ b/api/user.go
@@ -636,6 +636,10 @@ func doLogin(c *Context, w http.ResponseWriter, r *http.Request, user *model.Use
bname = "unknown"
}
+ if strings.Contains(r.UserAgent(), "Mattermost") {
+ bname = "Desktop App"
+ }
+
if bversion == "" {
bversion = "0.0"
}