From dc4eac2742c09199e0a8a6a85c0129a7097e4a9d Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 20 Oct 2024 21:46:22 +0200 Subject: [PATCH 1/2] QuickFix: 2FA - App specific password --- src/Module/Settings/TwoFactor/AppSpecific.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Module/Settings/TwoFactor/AppSpecific.php b/src/Module/Settings/TwoFactor/AppSpecific.php index c10bf8d680..3cf7062a4b 100644 --- a/src/Module/Settings/TwoFactor/AppSpecific.php +++ b/src/Module/Settings/TwoFactor/AppSpecific.php @@ -77,7 +77,8 @@ class AppSpecific extends BaseSettings $this->baseUrl->redirect('settings/2fa/app_specific?t=' . self::getFormSecurityToken('settings_2fa_password')); } else { $this->appSpecificPassword = AppSpecificPassword::generateForUser($this->session->getLocalUserId(), $request['description'] ?? ''); - $this->systemMessages->addInfo($this->t('New app-specific password generated.')); + $this->systemMessages->addInfo($this->t('New app-specific password generated: %s', $this->appSpecificPassword['plaintext_password'])); + $this->baseUrl->redirect('settings/2fa/app_specific?t=' . self::getFormSecurityToken('settings_2fa_password')); } break; From 77dc675a79a9f6e62b32775a2497469585152b2e Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 20 Oct 2024 21:53:50 +0200 Subject: [PATCH 2/2] Update messages.po --- view/lang/C/messages.po | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po index fd086af7ba..174c12cdaf 100644 --- a/view/lang/C/messages.po +++ b/view/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2024.09-rc\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-20 08:32+0000\n" +"POT-Creation-Date: 2024-10-20 19:53+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2035,7 +2035,7 @@ msgid "Create an account" msgstr "" #: src/Content/Nav.php:247 src/Module/Help.php:53 -#: src/Module/Settings/TwoFactor/AppSpecific.php:118 +#: src/Module/Settings/TwoFactor/AppSpecific.php:119 #: src/Module/Settings/TwoFactor/Index.php:125 #: src/Module/Settings/TwoFactor/Recovery.php:96 #: src/Module/Settings/TwoFactor/Verify.php:135 view/theme/vier/theme.php:228 @@ -9565,7 +9565,7 @@ msgstr "" #: src/Module/Settings/Channels.php:177 src/Module/Settings/Channels.php:198 #: src/Module/Settings/Display.php:335 -#: src/Module/Settings/TwoFactor/AppSpecific.php:123 +#: src/Module/Settings/TwoFactor/AppSpecific.php:124 msgid "Description" msgstr "" @@ -10427,54 +10427,55 @@ msgid "App-specific password generation failed: This description already exists. msgstr "" #: src/Module/Settings/TwoFactor/AppSpecific.php:80 -msgid "New app-specific password generated." +#, php-format +msgid "New app-specific password generated: %s" msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:86 +#: src/Module/Settings/TwoFactor/AppSpecific.php:87 msgid "App-specific passwords successfully revoked." msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:96 +#: src/Module/Settings/TwoFactor/AppSpecific.php:97 msgid "App-specific password successfully revoked." msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:117 +#: src/Module/Settings/TwoFactor/AppSpecific.php:118 msgid "Two-factor app-specific passwords" msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:119 +#: src/Module/Settings/TwoFactor/AppSpecific.php:120 msgid "

App-specific passwords are randomly generated passwords used instead your regular password to authenticate your account on third-party applications that don't support two-factor authentication.

" msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:120 +#: src/Module/Settings/TwoFactor/AppSpecific.php:121 msgid "Make sure to copy your new app-specific password now. You won’t be able to see it again!" msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:124 +#: src/Module/Settings/TwoFactor/AppSpecific.php:125 msgid "Last Used" msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:125 +#: src/Module/Settings/TwoFactor/AppSpecific.php:126 msgid "Revoke" msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:126 +#: src/Module/Settings/TwoFactor/AppSpecific.php:127 msgid "Revoke All" msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:129 +#: src/Module/Settings/TwoFactor/AppSpecific.php:130 msgid "When you generate a new app-specific password, you must use it right away, it will be shown to you once after you generate it." msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:130 +#: src/Module/Settings/TwoFactor/AppSpecific.php:131 msgid "Generate new app-specific password" msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:131 +#: src/Module/Settings/TwoFactor/AppSpecific.php:132 msgid "Friendiqa on my Fairphone 2..." msgstr "" -#: src/Module/Settings/TwoFactor/AppSpecific.php:132 +#: src/Module/Settings/TwoFactor/AppSpecific.php:133 msgid "Generate" msgstr ""