Added translation if authentication confirmation code is wrong

This commit is contained in:
Jan Böhmer 2024-10-13 20:35:56 +02:00
parent ca116cae91
commit ccf67c0662
2 changed files with 44 additions and 38 deletions

View file

@ -329,7 +329,7 @@ class UserSettingsController extends AbstractController
$google_form->get('googleAuthenticatorSecret')->setData($user->getGoogleAuthenticatorSecret());
}
$google_form->handleRequest($request);
if (!$this->demo_mode && !$user->isSamlUser() && $google_form->isSubmitted() && $google_form->isValid()) {
if (!$google_enabled) {
//Save 2FA settings (save secrets)