explicitly configure DisableLegacyMFA for TestCheckUserMfa (#10401)

This commit is contained in:
Jesse Hallam
2019-03-04 12:32:55 -05:00
committed by GitHub
parent 43e6e261d6
commit 15f8656088

View File

@@ -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)