diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-06-14 23:46:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 23:46:39 +0300 |
commit | 03410d62c6885010bc0968dca9ebe5e23b7c8e87 (patch) | |
tree | 7af15e34fc9221684247c82a49e9c42b40193c92 /plugins/TwoFactorAuth | |
parent | 6eec10098f09e7eb87f0c1259ed4f3b242d74757 (diff) |
Disable logme functionality by default (#17665)
* Disable logme functionallity by default
* add changelog
Diffstat (limited to 'plugins/TwoFactorAuth')
-rw-r--r-- | plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js b/plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js index c95708b457..7d87184e19 100644 --- a/plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js +++ b/plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js @@ -25,6 +25,9 @@ describe("TwoFactorAuth", function () { async function loginUser(username, doAuth) { + testEnvironment.overrideConfig('General', 'login_allow_logme', '1') + testEnvironment.save(); + // make sure to log out previous session await page.goto(logoutUrl); @@ -70,6 +73,7 @@ describe("TwoFactorAuth", function () { delete testEnvironment.requireTwoFa; delete testEnvironment.restoreRecoveryCodes; delete testEnvironment.fakeCorrectAuthCode; + delete testEnvironment.configOverride; testEnvironment.testUseMockAuth = 1; testEnvironment.save(); }); @@ -106,6 +110,9 @@ describe("TwoFactorAuth", function () { }); it('when logging in through logme and verifying screen it works to access ui', async function () { + testEnvironment.overrideConfig('General', 'login_allow_logme', '1') + testEnvironment.save(); + await page.type('.loginTwoFaForm #login_form_authcode', '123456'); await page.evaluate(function(){ $('.loginTwoFaForm #login_form_submit').click(); |