explicitly configure DisableLegacyMFA for TestCheckUserMfa (#10401)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
43e6e261d6
Коммит
15f8656088
@@ -1811,6 +1811,10 @@ func TestCheckUserMfa(t *testing.T) {
|
|||||||
th := Setup().InitBasic()
|
th := Setup().InitBasic()
|
||||||
defer th.TearDown()
|
defer th.TearDown()
|
||||||
|
|
||||||
|
th.App.UpdateConfig(func(c *model.Config) {
|
||||||
|
*c.ServiceSettings.DisableLegacyMFA = false
|
||||||
|
})
|
||||||
|
|
||||||
required, resp := th.Client.CheckUserMfa(th.BasicUser.Email)
|
required, resp := th.Client.CheckUserMfa(th.BasicUser.Email)
|
||||||
CheckNoError(t, resp)
|
CheckNoError(t, resp)
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user