diff options
author | Chris <ccbrown112@gmail.com> | 2018-01-17 12:38:37 -0600 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-01-17 13:38:37 -0500 |
commit | 4e6cc846a618ecef5c101727bbd03f6674044ab7 (patch) | |
tree | 1fc093b4b338acf34180c93f30a32de50e17d089 /manualtesting | |
parent | dce061630530c467966378ae3c5adbcf4a09e34f (diff) | |
download | chat-4e6cc846a618ecef5c101727bbd03f6674044ab7.tar.gz chat-4e6cc846a618ecef5c101727bbd03f6674044ab7.tar.bz2 chat-4e6cc846a618ecef5c101727bbd03f6674044ab7.zip |
Finally remove utils.Cfg (#8113)
* finally remove utils.Cfg
* fix compile error
* another test compilation fix
Diffstat (limited to 'manualtesting')
-rw-r--r-- | manualtesting/manual_testing.go | 4 |
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) |