summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-01-13 15:17:50 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-13 15:17:50 -0500
commit0e2b321e6f5ab5983bc3428aa455dac7012c36ee (patch)
treec3919a284cf13ddcb66a6f482b1c9bbd9f34fc9b /cmd
parent97558f6a6ec4c53fa69035fb430ead209d9c222d (diff)
downloadchat-0e2b321e6f5ab5983bc3428aa455dac7012c36ee.tar.gz
chat-0e2b321e6f5ab5983bc3428aa455dac7012c36ee.tar.bz2
chat-0e2b321e6f5ab5983bc3428aa455dac7012c36ee.zip
Refactor and migrate more functions out of api into app package (#5063)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platform/oldcommands.go2
-rw-r--r--cmd/platform/user.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/platform/oldcommands.go b/cmd/platform/oldcommands.go
index 39560af7d..faf086cb7 100644
--- a/cmd/platform/oldcommands.go
+++ b/cmd/platform/oldcommands.go
@@ -781,7 +781,7 @@ func cmdResetMfa() {
}
}
- if err := api.DeactivateMfa(user.Id); err != nil {
+ if err := app.DeactivateMfa(user.Id); err != nil {
l4g.Error("%v", err)
flushLogAndExit(1)
}
diff --git a/cmd/platform/user.go b/cmd/platform/user.go
index aabc6afcf..4fa4cd36e 100644
--- a/cmd/platform/user.go
+++ b/cmd/platform/user.go
@@ -298,7 +298,7 @@ func resetUserMfaCmdF(cmd *cobra.Command, args []string) error {
return errors.New("Unable to find user '" + args[i] + "'")
}
- if err := api.DeactivateMfa(user.Id); err != nil {
+ if err := app.DeactivateMfa(user.Id); err != nil {
return err
}
}