summaryrefslogtreecommitdiffstats
path: root/api/oauth.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-08-30 14:00:50 -0300
committerCorey Hulen <corey@hulen.com>2016-08-30 09:00:50 -0800
commit6c8746dbdc01e5f2b79152e2e495e914c5a9743d (patch)
tree7c2c07f228896fcf9e02148f551af201a98a132b /api/oauth.go
parent77656aea7f99dc7597b3c41e3dea96333ebfafd5 (diff)
downloadchat-6c8746dbdc01e5f2b79152e2e495e914c5a9743d.tar.gz
chat-6c8746dbdc01e5f2b79152e2e495e914c5a9743d.tar.bz2
chat-6c8746dbdc01e5f2b79152e2e495e914c5a9743d.zip
PLT-4026 Use client dir constant for OAuth Authorization page (#3895)
Diffstat (limited to 'api/oauth.go')
-rw-r--r--api/oauth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/oauth.go b/api/oauth.go
index 59e68ece3..d2a6dd9d4 100644
--- a/api/oauth.go
+++ b/api/oauth.go
@@ -429,7 +429,7 @@ func authorizeOAuth(c *Context, w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html")
w.Header().Set("Cache-Control", "no-cache, max-age=31556926, public")
- http.ServeFile(w, r, utils.FindDir("webapp/dist")+"root.html")
+ http.ServeFile(w, r, utils.FindDir(model.CLIENT_DIR)+"root.html")
}
func getAccessToken(c *Context, w http.ResponseWriter, r *http.Request) {