Refactor and migrate more functions out of api into app package (#5063)

This commit is contained in:
Joram Wilander
2017-01-13 15:17:50 -05:00
committed by Harrison Healey
parent 97558f6a6e
commit 0e2b321e6f
33 changed files with 1673 additions and 1399 deletions

View File

@@ -665,7 +665,7 @@ func adminResetMfa(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if err := DeactivateMfa(userId); err != nil {
if err := app.DeactivateMfa(userId); err != nil {
c.Err = err
return
}