Remove global site url (#8343)

* remove global site url

* missed one

* revert mysterious change
This commit is contained in:
Chris
2018-02-22 18:23:32 -06:00
committed by GitHub
parent 1b3808f3ec
commit d44ef7ea67
12 changed files with 32 additions and 35 deletions

View File

@@ -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 {