summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/login.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/login.go b/app/login.go
index 2528f9367..819d2081a 100644
--- a/app/login.go
+++ b/app/login.go
@@ -6,6 +6,7 @@ package app
import (
"fmt"
"net/http"
+ "strings"
"time"
"github.com/mattermost/platform/einterfaces"
@@ -90,6 +91,10 @@ func DoLogin(w http.ResponseWriter, r *http.Request, user *model.User, deviceId
bname = "unknown"
}
+ if strings.Contains(r.UserAgent(), "Mattermost") {
+ bname = "Desktop App"
+ }
+
if bversion == "" {
bversion = "0.0"
}