From 0e2b321e6f5ab5983bc3428aa455dac7012c36ee Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 13 Jan 2017 15:17:50 -0500 Subject: Refactor and migrate more functions out of api into app package (#5063) --- cmd/platform/oldcommands.go | 2 +- cmd/platform/user.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/platform') 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 } } -- cgit v1.2.3-1-g7c22