mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 12:18:54 +02:00
Added translation if authentication confirmation code is wrong
This commit is contained in:
parent
ca116cae91
commit
ccf67c0662
2 changed files with 44 additions and 38 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue