summaryrefslogtreecommitdiffstats
path: root/web/web.go
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-08-21 11:15:21 -0700
committernickago <ngonella@calpoly.edu>2015-08-24 09:49:50 -0700
commitae3f9cdb0a997e3de9cd0f70bfa0520bb81e1495 (patch)
tree266b48a2e6636edd80b0551b6f67861c67c7848a /web/web.go
parent3e73ff25d35bf5638aabe70b8596b8c80eb0882b (diff)
downloadchat-ae3f9cdb0a997e3de9cd0f70bfa0520bb81e1495.tar.gz
chat-ae3f9cdb0a997e3de9cd0f70bfa0520bb81e1495.tar.bz2
chat-ae3f9cdb0a997e3de9cd0f70bfa0520bb81e1495.zip
Changed 1 hour expire time to 30 days
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/web/web.go b/web/web.go
index e449d2d3a..dc2b5dced 100644
--- a/web/web.go
+++ b/web/web.go
@@ -4,18 +4,19 @@
package web
import (
- l4g "code.google.com/p/log4go"
"fmt"
+ "html/template"
+ "net/http"
+ "strconv"
+ "strings"
+
+ l4g "code.google.com/p/log4go"
"github.com/gorilla/mux"
"github.com/mattermost/platform/api"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mssola/user_agent"
"gopkg.in/fsnotify.v1"
- "html/template"
- "net/http"
- "strconv"
- "strings"
)
var Templates *template.Template
@@ -214,7 +215,7 @@ func signupTeamComplete(c *api.Context, w http.ResponseWriter, r *http.Request)
props := model.MapFromJson(strings.NewReader(data))
t, err := strconv.ParseInt(props["time"], 10, 64)
- if err != nil || model.GetMillis()-t > 1000*60*60 { // one hour
+ if err != nil || model.GetMillis()-t > 1000*60*60*24*30 { // 30 days
c.Err = model.NewAppError("signupTeamComplete", "The signup link has expired", "")
return
}