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)