Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-06-14 23:46:39 +0300
committerGitHub <noreply@github.com>2021-06-14 23:46:39 +0300
commit03410d62c6885010bc0968dca9ebe5e23b7c8e87 (patch)
tree7af15e34fc9221684247c82a49e9c42b40193c92 /plugins/TwoFactorAuth
parent6eec10098f09e7eb87f0c1259ed4f3b242d74757 (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.js7
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();