From fe3b1c9b52f584b0f045907585b206344fed55db Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Thu, 8 May 2025 21:20:58 +0700 Subject: chore: implement 2fa auth (#2968) * chore: implement 2fa auth from #2786 * chore: format code * chore: replace two factor token input with qr-code * chore: requesting confirmation of setting/removing two-factor authentication otpauth library was taken from cdnjs * chore: revert changes in `ClipboardManager` don't need it. * chore: removing twoFactor prop in settings page * chore: remove `twoFactorQr` object in `mounted` function --- web/html/modals/two_factor_modal.html | 118 ++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 web/html/modals/two_factor_modal.html (limited to 'web/html/modals/two_factor_modal.html') diff --git a/web/html/modals/two_factor_modal.html b/web/html/modals/two_factor_modal.html new file mode 100644 index 00000000..d2f8c442 --- /dev/null +++ b/web/html/modals/two_factor_modal.html @@ -0,0 +1,118 @@ +{{define "modals/twoFactorModal"}} + + + {{ i18n "pages.settings.security.twoFactorModalSteps" }} + + {{ i18n "pages.settings.security.twoFactorModalFirstStep" }} + + + + + [[ twoFactorModal.token ]] + + + {{ i18n "pages.settings.security.twoFactorModalSecondStep" }} + + + + {{ i18n "pages.settings.security.twoFactorModalRemoveStep" }} + + + + + {{ i18n "cancel" }} + + + {{ i18n "confirm" }} + + + + + +{{end}} \ No newline at end of file -- cgit v1.2.3
{{ i18n "pages.settings.security.twoFactorModalSteps" }}
{{ i18n "pages.settings.security.twoFactorModalFirstStep" }}
{{ i18n "pages.settings.security.twoFactorModalSecondStep" }}
{{ i18n "pages.settings.security.twoFactorModalRemoveStep" }}