summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/api.go3
-rw-r--r--api/user.go2
2 files changed, 1 insertions, 4 deletions
diff --git a/api/api.go b/api/api.go
index 4f593cfa5..44651b1fa 100644
--- a/api/api.go
+++ b/api/api.go
@@ -10,7 +10,6 @@ import (
"github.com/gorilla/mux"
"github.com/mattermost/mattermost-server/app"
"github.com/mattermost/mattermost-server/model"
- "github.com/mattermost/mattermost-server/utils"
_ "github.com/nicksnyder/go-i18n/i18n"
)
@@ -113,8 +112,6 @@ func Init(a *app.App, root *mux.Router) *API {
// 404 on any api route before web.go has a chance to serve it
root.Handle("/api/{anything:.*}", http.HandlerFunc(Handle404))
- utils.InitHTML()
-
a.InitEmailBatching()
if *a.Config().ServiceSettings.EnableAPIv3 {
diff --git a/api/user.go b/api/user.go
index f8cb1d855..5aba61e38 100644
--- a/api/user.go
+++ b/api/user.go
@@ -1040,7 +1040,7 @@ func updateMfa(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if err := app.SendMfaChangeEmail(user.Email, activate, user.Locale, utils.GetSiteURL()); err != nil {
+ if err := c.App.SendMfaChangeEmail(user.Email, activate, user.Locale, utils.GetSiteURL()); err != nil {
l4g.Error(err.Error())
}
})