summaryrefslogtreecommitdiffstats
path: root/api4/user.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2018-02-22 18:23:32 -0600
committerGitHub <noreply@github.com>2018-02-22 18:23:32 -0600
commitd44ef7ea67324072f3fbf1230c77f0ee0b4ac8bd (patch)
tree250e6f64e10631d6e0470e57916d82c897fc8b6a /api4/user.go
parent1b3808f3ecf754876168a9342e18c46d49f32ddf (diff)
downloadchat-d44ef7ea67324072f3fbf1230c77f0ee0b4ac8bd.tar.gz
chat-d44ef7ea67324072f3fbf1230c77f0ee0b4ac8bd.tar.bz2
chat-d44ef7ea67324072f3fbf1230c77f0ee0b4ac8bd.zip
Remove global site url (#8343)
* remove global site url * missed one * revert mysterious change
Diffstat (limited to 'api4/user.go')
-rw-r--r--api4/user.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/user.go b/api4/user.go
index 165e5aa9a..f82a6e3d5 100644
--- a/api4/user.go
+++ b/api4/user.go
@@ -13,7 +13,6 @@ import (
"github.com/mattermost/mattermost-server/app"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
- "github.com/mattermost/mattermost-server/utils"
)
func (api *API) InitUser() {
@@ -894,7 +893,7 @@ func sendPasswordReset(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if sent, err := c.App.SendPasswordReset(email, utils.GetSiteURL()); err != nil {
+ if sent, err := c.App.SendPasswordReset(email, c.App.GetSiteURL()); err != nil {
c.Err = err
return
} else if sent {