1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/plugins/TwoFactorAuth/templates/setupTwoFactorAuth.twig
dizzy e3655d38f7 [Vue] remove use of angularjs from TwoFactorAuth plugin (#19382)
* convert twig templates using directives to vue components, remove angularjs adapters and modify less styles that use directive attribute names

* built vue files

* move use of angularjs directives in TwoFactorAuth twig templates to new vue components and add vue component for Logins formErrors.twig template

* built vue files

* add missing translations

* fixing UI tests

* more UI test fixex

* remove reference to nonexistant JS file

* updated expected screenshots

* fixing ui test failures

* update expected screenshots

* fixing ui test failures

* fix select on focus use

* fix placement of computed property

* fixing ui test issues

* prevent random failure

* make sure Login plugin UMD is always loaded

* formErrors is an object if supplied

* compile vue entry components in reset API response and modify check for success

* rebuild login

* update expected screenshot

* remove unneeded use of html_attr escape

* remove use of html_attr and remove duplicate client side translation token entries

* sort used js translations and remove duplicates

* Update plugins/TwoFactorAuth/vue/src/LoginTwoFactorAuth/LoginTwoFactorAuth.vue

Co-authored-by: Stefan Giehl <stefan@matomo.org>

* Update plugins/TwoFactorAuth/vue/src/UserSettings/UserSettings.vue

Co-authored-by: Stefan Giehl <stefan@matomo.org>

* Update plugins/TwoFactorAuth/vue/src/ShowRecoveryCodes/ShowRecoveryCodesPage.vue

Co-authored-by: Stefan Giehl <stefan@matomo.org>

* Update plugins/TwoFactorAuth/vue/src/SetupFinished/SetupFinished.vue

Co-authored-by: Stefan Giehl <stefan@matomo.org>

* built vue files

* adds missing sanitize

* fix AssetManagerTest

* try to fix issue with umd asset fetching if Login not loaded

* cs

* updates expected test files

Co-authored-by: sgiehl <stefan@matomo.org>
2022-08-17 10:27:43 +02:00

15 خطوط
598 B
Twig

{% extends 'admin.twig' %}
{% block content %}
<div
vue-entry="TwoFactorAuth.SetupTwoFactorAuth"
is-already-using2fa="{{ isAlreadyUsing2fa|default(null)|json_encode }}"
access-error-string="{{ AccessErrorString|default(null)|json_encode }}"
submit-action="{{ submitAction|default(null)|json_encode }}"
auth-code-nonce="{{ authCodeNonce|default(null)|json_encode }}"
codes="{{ codes|default(null)|json_encode }}"
new-secret="{{ newSecret|json_encode }}"
two-fa-bar-code-setup-url="{{ twoFaBarCodeSetupUrl|json_encode }}"
standalone="false"
></div>
{% endblock %}