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>2022-07-25 11:58:34 +0300
committerGitHub <noreply@github.com>2022-07-25 11:58:34 +0300
commit6cc723685d3c1c9b399b09e9b691b9f2dba80bce (patch)
treee694ce956c8c3358a428dd6c87f1ad07d86719b1 /plugins/Morpheus
parent064f6db3b8f8534e9aaaf881168017bac5fcb6cf (diff)
Refactor and improve password confirmation in UI & API (#19525)
* Extract password confirmation into own vue component * Require password confirmation for Anonymize data section * Adjust tests * Move password confirmation method to abstract class * Use new password confirmation component also for setting super user access * Use new password confirmation component also for changing user & 2FA reset * Introduce new event Login.userRequiresPasswordConfirmation to allow plugins to disable the password confirmation for users * adjust ui tests * Use new password confirmation component also for user settings * cleans up some vue code * built vue files * clean up php code * improve 2fa tab & adjust tests * add warning to event Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r--plugins/Morpheus/templates/_jsGlobalVariables.twig2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Morpheus/templates/_jsGlobalVariables.twig b/plugins/Morpheus/templates/_jsGlobalVariables.twig
index f623687cec..cddbcfb382 100644
--- a/plugins/Morpheus/templates/_jsGlobalVariables.twig
+++ b/plugins/Morpheus/templates/_jsGlobalVariables.twig
@@ -22,6 +22,8 @@
{% if idSite is defined %}piwik.idSite = "{{ idSite }}";{% endif %}
+ piwik.requiresPasswordConfirmation = {{ userRequiresPasswordConfirmation ? 'true' : 'false' }};
+
{% if siteName is defined %}
// NOTE: siteName is currently considered deprecated, use piwik.currentSiteName instead, which will not contain HTML entities
piwik.siteName = "{{ siteName|e('js') }}";