From dc4eac2742c09199e0a8a6a85c0129a7097e4a9d Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 20 Oct 2024 21:46:22 +0200 Subject: [PATCH] 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;