mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 12:18:54 +02:00
Keeep the segment annotations in the translation files, when editing them from inside the application
This commit is contained in:
parent
a29d933f99
commit
ca116cae91
3 changed files with 505 additions and 2 deletions
|
@ -329,8 +329,7 @@ class UserSettingsController extends AbstractController
|
|||
$google_form->get('googleAuthenticatorSecret')->setData($user->getGoogleAuthenticatorSecret());
|
||||
}
|
||||
$google_form->handleRequest($request);
|
||||
|
||||
//We do not need to check for validity of the google form here, because we do not care if the other fields are valid
|
||||
|
||||
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