summaryrefslogtreecommitdiffstats
path: root/manualtesting
diff options
context:
space:
mode:
Diffstat (limited to 'manualtesting')
-rw-r--r--manualtesting/manual_testing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/manualtesting/manual_testing.go b/manualtesting/manual_testing.go
index 20b7a2dfd..becf4ec1b 100644
--- a/manualtesting/manual_testing.go
+++ b/manualtesting/manual_testing.go
@@ -55,7 +55,7 @@ func manualTest(c *api.Context, w http.ResponseWriter, r *http.Request) {
}
// Create a client for tests to use
- client := model.NewClient("http://localhost" + *utils.Cfg.ServiceSettings.ListenAddress)
+ client := model.NewClient("http://localhost" + *c.App.Config().ServiceSettings.ListenAddress)
// Check for username parameter and create a user if present
username, ok1 := params["username"]
@@ -118,7 +118,7 @@ func manualTest(c *api.Context, w http.ResponseWriter, r *http.Request) {
Name: model.SESSION_COOKIE_TOKEN,
Value: client.AuthToken,
Path: "/",
- MaxAge: *utils.Cfg.ServiceSettings.SessionLengthWebInDays * 60 * 60 * 24,
+ MaxAge: *c.App.Config().ServiceSettings.SessionLengthWebInDays * 60 * 60 * 24,
HttpOnly: true,
}
http.SetCookie(w, sessionCookie)