From 15f86560887046dabba779cc99edab69ee4b3354 Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Mon, 4 Mar 2019 12:32:55 -0500 Subject: [PATCH] explicitly configure DisableLegacyMFA for TestCheckUserMfa (#10401) --- api4/user_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api4/user_test.go b/api4/user_test.go index 3d4d4012f4..f445b5ed85 100644 --- a/api4/user_test.go +++ b/api4/user_test.go @@ -1811,6 +1811,10 @@ func TestCheckUserMfa(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() + th.App.UpdateConfig(func(c *model.Config) { + *c.ServiceSettings.DisableLegacyMFA = false + }) + required, resp := th.Client.CheckUserMfa(th.BasicUser.Email) CheckNoError(t, resp)