summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-09-08 10:27:49 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-09-08 10:27:49 -0300
commiteb8373aa80905fc57173da03ed5b2bd972c83d53 (patch)
treed543342c710b633fe75313ece472314202e7bc44 /api
parenta5ebbcfdb4f151de204b6be276c5f07175ceb82a (diff)
parentb2b2d141a9c4b423e6920930b726becd1e46436c (diff)
downloadchat-eb8373aa80905fc57173da03ed5b2bd972c83d53.tar.gz
chat-eb8373aa80905fc57173da03ed5b2bd972c83d53.tar.bz2
chat-eb8373aa80905fc57173da03ed5b2bd972c83d53.zip
Merge branch 'release-3.4' RC4
Diffstat (limited to 'api')
-rw-r--r--api/context.go2
-rw-r--r--api/user.go2
-rw-r--r--api/web_hub.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/api/context.go b/api/context.go
index 37b426c21..b63005d64 100644
--- a/api/context.go
+++ b/api/context.go
@@ -150,7 +150,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId)
- w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v", model.CurrentVersion, utils.CfgHash))
+ w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v.%v", model.CurrentVersion, model.BuildNumber, utils.CfgHash))
if einterfaces.GetClusterInterface() != nil {
w.Header().Set(model.HEADER_CLUSTER_ID, einterfaces.GetClusterInterface().GetClusterId())
}
diff --git a/api/user.go b/api/user.go
index daa405ad4..a33e2f7d7 100644
--- a/api/user.go
+++ b/api/user.go
@@ -2156,7 +2156,7 @@ func emailToLdap(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- go sendSignInChangeEmail(c, user.Email, c.GetSiteURL(), "LDAP")
+ go sendSignInChangeEmail(c, user.Email, c.GetSiteURL(), "AD/LDAP")
m := map[string]string{}
m["follow_link"] = "/login?extra=signin_change"
diff --git a/api/web_hub.go b/api/web_hub.go
index c4abc5a7a..452fa10f8 100644
--- a/api/web_hub.go
+++ b/api/web_hub.go
@@ -64,7 +64,7 @@ func (h *Hub) Register(webConn *WebConn) {
h.register <- webConn
msg := model.NewWebSocketEvent("", "", webConn.UserId, model.WEBSOCKET_EVENT_HELLO)
- msg.Add("server_version", fmt.Sprintf("%v.%v", model.CurrentVersion, utils.CfgHash))
+ msg.Add("server_version", fmt.Sprintf("%v.%v.%v", model.CurrentVersion, model.BuildNumber, utils.CfgHash))
go Publish(msg)
}