mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Use renderForm for proper return codes for turbo
This commit is contained in:
parent
3a21c18ba9
commit
ae24fb5eb1
7 changed files with 29 additions and 29 deletions
|
@ -350,14 +350,14 @@ class UserSettingsController extends AbstractController
|
|||
* Output both forms
|
||||
*****************************/
|
||||
|
||||
return $this->render('Users/user_settings.html.twig', [
|
||||
return $this->renderForm('Users/user_settings.html.twig', [
|
||||
'user' => $user,
|
||||
'settings_form' => $form->createView(),
|
||||
'pw_form' => $pw_form->createView(),
|
||||
'settings_form' => $form,
|
||||
'pw_form' => $pw_form,
|
||||
'page_need_reload' => $page_need_reload,
|
||||
|
||||
'google_form' => $google_form->createView(),
|
||||
'backup_form' => $backup_form->createView(),
|
||||
'google_form' => $google_form,
|
||||
'backup_form' => $backup_form,
|
||||
'tfa_google' => [
|
||||
'enabled' => $google_enabled,
|
||||
'qrContent' => $googleAuthenticator->getQRContent($user),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue