Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace App\Controller\Frontend; use Symfony\Component\HttpFoundation\Request; u..

Decoded Output download

<?php 
 namespace App\Controller\Frontend; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Form; use App\Controller\Controller; use App\Entity\Manager\UserManager; use App\Entity\Manager\TimezoneManager; use App\Security\Authenticator\MfaAuthenticator; use App\Entity\User; class UserController extends Controller { public function adminUserCreation(Request $request, UserManager $userManager, TimezoneManager $timezoneManager) : Response { goto Fd1aa; C6a5f: B65b9: goto Ff00d; D0bb9: if (!(true === $isSubmitted)) { goto B65b9; } goto Ebe58; D8a5b: $isSubmitted = $form->isSubmitted(); goto D0bb9; B2ac0: $response = $this->render("Frontend/User/admin-user-creation.html.twig", ["formErrors" => $this->formErrors, "form" => $form->createView()]); goto E97f9; F8fd9: $user->setTimezone($timezone); goto f908e; c3ae7: if (!(true === $request->isMethod("POST"))) { goto F6517; } goto A9b0f; da582: Ee857: goto Eb6c9; Ac361: return $response; goto da582; f908e: $form = $this->createAdminUserCreationForm($user); goto c3ae7; Ebe58: $response = $this->handleAdminUserCreationForm($request, $form, $userManager); goto Ff805; E97f9: return $response; goto b219b; F6ad2: return $response; goto Ef814; Eb6c9: $timezone = $timezoneManager->findOneByName("Europe/Berlin"); goto ff684; Ff00d: F6517: goto B2ac0; A9b0f: $form->handleRequest($request); goto D8a5b; f46c7: $user->setRole(User::ROLE_ADMIN); goto F488f; Ff805: if (!(false === is_null($response))) { goto a7a2b; } goto F6ad2; ff684: $user = $userManager->createEntity(); goto f46c7; Ef814: a7a2b: goto C6a5f; F488f: $user->setStatus(User::STATUS_ACTIVE); goto F8fd9; Fd1aa: $users = $userManager->findAll(); goto D574d; F3e9c: $response = $this->redirect($this->generateUrl("clp_login")); goto Ac361; D574d: if (!count($users)) { goto Ee857; } goto F3e9c; b219b: } private function createAdminUserCreationForm(User $user) : Form { goto a469b; a469b: $form = $this->createForm("App\Form\UserAdminUserCreationType", $user, ["action" => $this->generateUrl("clp_admin_user_creation"), "method" => "POST", "attr" => []]); goto edad8; ee876: return $form; goto f6d18; edad8: $form->add("submit", SubmitType::class, ["attr" => ["class" => "btn btn-lg btn-blue btn-create-user"], "label" => "Create User"]); goto ee876; f6d18: } private function handleAdminUserCreationForm(Request $request, Form $form, UserManager $userManager) { goto a0eee; d684f: Be775: goto Eff6a; beb2e: $this->formErrors = $this->getErrorMessages($form); goto E2a2d; B01d0: ee712: goto d6a03; E2a2d: goto ee712; goto d684f; a0eee: if (true === $form->isValid()) { goto Be775; } goto beb2e; Eff6a: try { goto D10fb; f2732: return $response; goto Fd190; D10fb: $session = $request->getSession(); goto ea73a; d38d2: $response = $this->redirect($this->generateUrl("clp_login")); goto f2732; f1bf8: $userManager->updateUser($user); goto d38d2; ea73a: $user = $form->getData(); goto f1bf8; Fd190: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("danger", $this->translator->trans("An error has occurred, error message: %errorMessage%", ["%errorMessage%" => $e->getMessage()])); } goto B01d0; d6a03: } public function settings(Request $request, UserManager $userManager) : Response { goto D9e52; Ba424: Fd5af: goto A2261; B6533: $form->handleRequest($request); goto cae57; ebc6f: Dca62: goto Ea2ac; cae57: $isSubmitted = $form->isSubmitted(); goto E67b6; E67b6: if (!(true === $isSubmitted)) { goto f5035; } goto ef6d2; f1ac7: $form = $this->createUserSettingsForm($user); goto C356d; A2261: f5035: goto ebc6f; dba91: return $response; goto Ba424; D9e52: $user = $this->getUser(); goto f1ac7; ef6d2: $response = $this->handleUserSettingsForm($request, $form, $userManager); goto Df3f5; A213d: return $response; goto d00f1; Ea2ac: $response = $this->render("Frontend/User/Account/settings.html.twig", ["formErrors" => $this->formErrors, "form" => $form->createView()]); goto A213d; Df3f5: if (!(false === is_null($response))) { goto Fd5af; } goto dba91; C356d: if (!(true === $request->isMethod("POST"))) { goto Dca62; } goto B6533; d00f1: } private function createUserSettingsForm(User $user) : Form { goto acc35; B5a82: $form->add("submit", SubmitType::class, ["attr" => ["class" => "btn btn-blue btn-lg"], "label" => "Save"]); goto afe78; acc35: $form = $this->createForm("App\Form\UserSettingsType", $user, ["action" => $this->generateUrl("clp_user_settings"), "method" => "POST", "attr" => []]); goto B5a82; afe78: return $form; goto Af3f3; Af3f3: } private function handleUserSettingsForm(Request $request, Form $form, UserManager $userManager) { goto a38a1; Fc858: Ba89b: goto E6fab; a38a1: if (true === $form->isValid()) { goto C6f64; } goto D4c33; Cb5b2: try { goto d5297; Fd3ba: $user = $form->getData(); goto f8d46; F004b: return $response; goto d387b; d5297: $session = $request->getSession(); goto Fd3ba; Cb5fc: B8f47: goto A53f6; f8d46: $plainPassword = $user->getPlainPassword(); goto C321b; D773b: $session->getFlashBag()->set("success", $this->translator->trans("The account information has been saved.")); goto F8782; F8782: $response = $this->redirect($this->generateUrl("clp_user_settings")); goto F004b; C321b: if (false === empty($plainPassword)) { goto B8f47; } goto Ab83a; A4d57: goto ea96e; goto Cb5fc; A53f6: $userManager->updateUser($user, true, true); goto e2a7e; Ab83a: $userManager->updateUser($user); goto A4d57; e2a7e: ea96e: goto D773b; d387b: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("danger", $this->translator->trans("An error has occurred, error message: %errorMessage%", ["%errorMessage%" => $e->getMessage()])); } goto Fc858; D4c33: $this->formErrors = $this->getErrorMessages($form); goto D18a1; d8908: C6f64: goto Cb5b2; D18a1: goto Ba89b; goto d8908; E6fab: } public function security(Request $request) : Response { goto D9d9f; D9d9f: $user = $this->getUser(); goto D36f9; D36f9: $response = $this->render("Frontend/User/Account/security.html.twig", ["user" => $user]); goto De09b; De09b: return $response; goto f9bd2; f9bd2: } public function enableMfa(Request $request, UserManager $userManager) : Response { goto Ac8d0; Ac8d0: $user = $this->getUser(); goto e9755; faa08: if (!(true === $request->isMethod("POST"))) { goto E16b4; } goto Ffd19; ab5cc: return $response; goto E7d21; a46da: E16b4: goto C2a27; a8d4f: $response = $this->handleMfaCodeForm($request, $form, $userManager); goto D0639; C94ea: $form = $this->createMfaCodeForm($user); goto faa08; E7d21: F7aa2: goto d5d4e; Bf093: $isSubmitted = $form->isSubmitted(); goto aac46; d5d4e: $mfaAuthenticator = new MfaAuthenticator(); goto E4fb9; E4fb9: $qrCodeLink = $mfaAuthenticator->getQrCodeLink($user->getMfaSecret(), $user->getUserName(), "CloudPanel"); goto C94ea; Ddd48: $response = $this->redirect($this->generateUrl("clp_user_security")); goto ab5cc; c1d34: ea190: goto dfe2f; e9755: if (!(true === $user->hasMfaEnabled())) { goto F7aa2; } goto Ddd48; Ffd19: $form->handleRequest($request); goto Bf093; b3657: return $response; goto c1d34; C2a27: $response = $this->render("Frontend/User/Account/enable-mfa.html.twig", ["qrCodeLink" => $qrCodeLink, "user" => $user, "form" => $form->createView(), "formErrors" => $this->formErrors]); goto e4bf8; dfe2f: c30c6: goto a46da; e4bf8: return $response; goto D09ca; aac46: if (!(true === $isSubmitted)) { goto c30c6; } goto a8d4f; D0639: if (!(false === is_null($response))) { goto ea190; } goto b3657; D09ca: } private function createMfaCodeForm(User $user) : Form { goto C52b9; A1bf9: return $form; goto B8749; C52b9: $form = $this->createForm("App\Form\UserSecurityMfaCodeType", $user, ["action" => $this->generateUrl("clp_user_security_enable_mfa"), "method" => "POST", "attr" => []]); goto b8b14; b8b14: $form->add("submit", SubmitType::class, ["attr" => ["class" => "btn btn-blue btn-lg btn-submit-mfa-code"], "label" => "Save"]); goto A1bf9; B8749: } private function handleMfaCodeForm(Request $request, Form $form, UserManager $userManager) { goto f0a54; ebb26: goto A4d0c; goto eeb62; b2d99: A4d0c: goto D0d7e; Be258: $this->formErrors = $this->getErrorMessages($form); goto ebb26; eeb62: f6787: goto Aeaa9; f0a54: if (true === $form->isValid()) { goto f6787; } goto Be258; Aeaa9: try { goto E2e6f; F4571: return $response; goto cf624; de3d9: $user->setMfa(true); goto D5865; c705a: $response = $this->redirect($this->generateUrl("clp_user_security")); goto F4571; f7fa8: $user = $this->getUser(); goto de3d9; D5865: $userManager->updateUser($user); goto B1d37; B1d37: $session->getFlashBag()->set("success", $this->translator->trans("Two-Factor Authentication has been enabled.")); goto c705a; E2e6f: $session = $request->getSession(); goto f7fa8; cf624: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("danger", $this->translator->trans("An error has occurred, error message: %errorMessage%", ["%errorMessage%" => $e->getMessage()])); } goto b2d99; D0d7e: } public function disableMfa(Request $request, UserManager $userManager) : Response { try { goto C5bad; b54ec: $response = $this->redirect($this->generateUrl("clp_user_security")); goto E79e4; aaa5b: $user->setMfa(false); goto f94e2; B0054: $user = $this->getUser(); goto aaa5b; ecc76: $session->getFlashBag()->set("success", $this->translator->trans("Two-Factor Authentication has been disabled.")); goto b54ec; f94e2: $userManager->updateUser($user); goto ecc76; C5bad: $session = $request->getSession(); goto B0054; E79e4: } catch (\Exception $e) { goto e0ffe; ad4ac: $session->getFlashBag()->set("danger", $this->translator->trans("An error has occurred, error message: %errorMessage%", ["%errorMessage%" => $e->getMessage()])); goto Baf87; Baf87: $response = $this->redirect($this->generateUrl("clp_user_security")); goto C54a9; e0ffe: $this->logger->exception($e); goto ad4ac; C54a9: } return $response; } } 
 ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Controller\Frontend; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Form; use App\Controller\Controller; use App\Entity\Manager\UserManager; use App\Entity\Manager\TimezoneManager; use App\Security\Authenticator\MfaAuthenticator; use App\Entity\User; class UserController extends Controller { public function adminUserCreation(Request $request, UserManager $userManager, TimezoneManager $timezoneManager) : Response { goto Fd1aa; C6a5f: B65b9: goto Ff00d; D0bb9: if (!(true === $isSubmitted)) { goto B65b9; } goto Ebe58; D8a5b: $isSubmitted = $form->isSubmitted(); goto D0bb9; B2ac0: $response = $this->render("\x46\x72\157\156\164\x65\156\144\57\x55\163\145\162\57\141\144\155\x69\156\55\165\163\145\162\x2d\x63\x72\x65\x61\164\151\157\156\x2e\150\164\x6d\x6c\56\x74\x77\x69\x67", ["\x66\x6f\x72\x6d\105\x72\x72\x6f\162\x73" => $this->formErrors, "\x66\x6f\162\x6d" => $form->createView()]); goto E97f9; F8fd9: $user->setTimezone($timezone); goto f908e; c3ae7: if (!(true === $request->isMethod("\x50\117\x53\x54"))) { goto F6517; } goto A9b0f; da582: Ee857: goto Eb6c9; Ac361: return $response; goto da582; f908e: $form = $this->createAdminUserCreationForm($user); goto c3ae7; Ebe58: $response = $this->handleAdminUserCreationForm($request, $form, $userManager); goto Ff805; E97f9: return $response; goto b219b; F6ad2: return $response; goto Ef814; Eb6c9: $timezone = $timezoneManager->findOneByName("\x45\165\x72\157\160\145\x2f\x42\145\x72\x6c\x69\x6e"); goto ff684; Ff00d: F6517: goto B2ac0; A9b0f: $form->handleRequest($request); goto D8a5b; f46c7: $user->setRole(User::ROLE_ADMIN); goto F488f; Ff805: if (!(false === is_null($response))) { goto a7a2b; } goto F6ad2; ff684: $user = $userManager->createEntity(); goto f46c7; Ef814: a7a2b: goto C6a5f; F488f: $user->setStatus(User::STATUS_ACTIVE); goto F8fd9; Fd1aa: $users = $userManager->findAll(); goto D574d; F3e9c: $response = $this->redirect($this->generateUrl("\x63\154\x70\x5f\154\x6f\x67\151\156")); goto Ac361; D574d: if (!count($users)) { goto Ee857; } goto F3e9c; b219b: } private function createAdminUserCreationForm(User $user) : Form { goto a469b; a469b: $form = $this->createForm("\101\x70\160\134\106\157\162\x6d\134\125\163\x65\162\101\x64\155\151\156\125\163\x65\162\103\x72\x65\141\164\151\x6f\156\x54\x79\x70\x65", $user, ["\x61\x63\164\151\157\x6e" => $this->generateUrl("\x63\x6c\x70\137\141\x64\155\151\156\137\x75\x73\145\162\137\143\162\x65\x61\164\x69\x6f\x6e"), "\155\x65\x74\x68\157\x64" => "\120\117\123\124", "\141\164\x74\162" => []]); goto edad8; ee876: return $form; goto f6d18; edad8: $form->add("\x73\x75\142\155\x69\x74", SubmitType::class, ["\141\x74\x74\162" => ["\x63\154\x61\163\x73" => "\142\164\x6e\x20\x62\164\x6e\x2d\x6c\x67\x20\142\x74\x6e\x2d\x62\x6c\x75\145\x20\x62\164\156\55\143\162\145\141\x74\x65\55\165\x73\145\x72"], "\154\x61\x62\x65\x6c" => "\103\x72\x65\141\164\x65\40\125\x73\x65\x72"]); goto ee876; f6d18: } private function handleAdminUserCreationForm(Request $request, Form $form, UserManager $userManager) { goto a0eee; d684f: Be775: goto Eff6a; beb2e: $this->formErrors = $this->getErrorMessages($form); goto E2a2d; B01d0: ee712: goto d6a03; E2a2d: goto ee712; goto d684f; a0eee: if (true === $form->isValid()) { goto Be775; } goto beb2e; Eff6a: try { goto D10fb; f2732: return $response; goto Fd190; D10fb: $session = $request->getSession(); goto ea73a; d38d2: $response = $this->redirect($this->generateUrl("\x63\154\160\137\x6c\x6f\x67\x69\156")); goto f2732; f1bf8: $userManager->updateUser($user); goto d38d2; ea73a: $user = $form->getData(); goto f1bf8; Fd190: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("\x64\x61\x6e\147\145\162", $this->translator->trans("\x41\156\x20\145\162\162\x6f\x72\40\150\x61\163\40\x6f\143\143\165\x72\162\x65\144\x2c\x20\145\162\x72\157\x72\40\155\145\x73\163\x61\147\x65\x3a\x20\45\145\162\x72\x6f\162\115\145\x73\163\141\147\x65\45", ["\45\145\x72\162\157\162\115\145\x73\163\x61\x67\145\45" => $e->getMessage()])); } goto B01d0; d6a03: } public function settings(Request $request, UserManager $userManager) : Response { goto D9e52; Ba424: Fd5af: goto A2261; B6533: $form->handleRequest($request); goto cae57; ebc6f: Dca62: goto Ea2ac; cae57: $isSubmitted = $form->isSubmitted(); goto E67b6; E67b6: if (!(true === $isSubmitted)) { goto f5035; } goto ef6d2; f1ac7: $form = $this->createUserSettingsForm($user); goto C356d; A2261: f5035: goto ebc6f; dba91: return $response; goto Ba424; D9e52: $user = $this->getUser(); goto f1ac7; ef6d2: $response = $this->handleUserSettingsForm($request, $form, $userManager); goto Df3f5; A213d: return $response; goto d00f1; Ea2ac: $response = $this->render("\106\x72\x6f\x6e\164\x65\x6e\144\x2f\125\163\145\162\57\101\143\x63\x6f\165\156\x74\57\x73\145\x74\164\151\156\x67\163\x2e\150\164\155\154\56\x74\x77\151\x67", ["\146\157\x72\155\105\162\162\x6f\x72\163" => $this->formErrors, "\x66\157\x72\x6d" => $form->createView()]); goto A213d; Df3f5: if (!(false === is_null($response))) { goto Fd5af; } goto dba91; C356d: if (!(true === $request->isMethod("\x50\117\x53\x54"))) { goto Dca62; } goto B6533; d00f1: } private function createUserSettingsForm(User $user) : Form { goto acc35; B5a82: $form->add("\163\x75\142\x6d\151\x74", SubmitType::class, ["\x61\164\164\162" => ["\143\x6c\x61\x73\x73" => "\x62\x74\x6e\40\x62\164\x6e\x2d\x62\x6c\165\x65\40\142\164\x6e\55\x6c\x67"], "\154\x61\x62\x65\154" => "\123\x61\x76\145"]); goto afe78; acc35: $form = $this->createForm("\x41\x70\160\x5c\x46\157\x72\x6d\134\125\x73\145\162\123\x65\x74\164\x69\156\x67\163\x54\x79\160\145", $user, ["\141\143\x74\151\x6f\156" => $this->generateUrl("\x63\154\x70\137\x75\163\145\x72\x5f\x73\145\x74\x74\x69\x6e\147\x73"), "\155\x65\164\x68\x6f\x64" => "\x50\x4f\x53\x54", "\141\x74\164\x72" => []]); goto B5a82; afe78: return $form; goto Af3f3; Af3f3: } private function handleUserSettingsForm(Request $request, Form $form, UserManager $userManager) { goto a38a1; Fc858: Ba89b: goto E6fab; a38a1: if (true === $form->isValid()) { goto C6f64; } goto D4c33; Cb5b2: try { goto d5297; Fd3ba: $user = $form->getData(); goto f8d46; F004b: return $response; goto d387b; d5297: $session = $request->getSession(); goto Fd3ba; Cb5fc: B8f47: goto A53f6; f8d46: $plainPassword = $user->getPlainPassword(); goto C321b; D773b: $session->getFlashBag()->set("\163\165\143\143\145\163\x73", $this->translator->trans("\x54\x68\x65\40\x61\x63\143\157\165\x6e\x74\x20\151\x6e\x66\157\162\155\x61\164\x69\x6f\156\x20\150\x61\163\x20\142\145\x65\x6e\40\x73\141\166\x65\144\x2e")); goto F8782; F8782: $response = $this->redirect($this->generateUrl("\x63\154\160\x5f\x75\x73\x65\162\137\x73\x65\x74\164\x69\156\x67\x73")); goto F004b; C321b: if (false === empty($plainPassword)) { goto B8f47; } goto Ab83a; A4d57: goto ea96e; goto Cb5fc; A53f6: $userManager->updateUser($user, true, true); goto e2a7e; Ab83a: $userManager->updateUser($user); goto A4d57; e2a7e: ea96e: goto D773b; d387b: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("\144\x61\x6e\x67\145\x72", $this->translator->trans("\101\x6e\x20\x65\x72\162\x6f\x72\x20\150\141\x73\x20\x6f\143\143\x75\x72\162\145\x64\54\x20\145\162\162\157\x72\40\155\x65\163\163\x61\x67\x65\72\x20\x25\x65\162\x72\157\162\x4d\145\163\163\x61\x67\x65\45", ["\45\x65\162\x72\157\x72\x4d\x65\163\x73\x61\x67\x65\45" => $e->getMessage()])); } goto Fc858; D4c33: $this->formErrors = $this->getErrorMessages($form); goto D18a1; d8908: C6f64: goto Cb5b2; D18a1: goto Ba89b; goto d8908; E6fab: } public function security(Request $request) : Response { goto D9d9f; D9d9f: $user = $this->getUser(); goto D36f9; D36f9: $response = $this->render("\x46\162\157\156\x74\x65\x6e\144\57\x55\x73\145\162\x2f\x41\x63\x63\157\x75\x6e\x74\x2f\163\145\143\x75\162\151\x74\171\x2e\x68\164\155\x6c\x2e\164\x77\x69\147", ["\165\x73\x65\162" => $user]); goto De09b; De09b: return $response; goto f9bd2; f9bd2: } public function enableMfa(Request $request, UserManager $userManager) : Response { goto Ac8d0; Ac8d0: $user = $this->getUser(); goto e9755; faa08: if (!(true === $request->isMethod("\120\x4f\x53\x54"))) { goto E16b4; } goto Ffd19; ab5cc: return $response; goto E7d21; a46da: E16b4: goto C2a27; a8d4f: $response = $this->handleMfaCodeForm($request, $form, $userManager); goto D0639; C94ea: $form = $this->createMfaCodeForm($user); goto faa08; E7d21: F7aa2: goto d5d4e; Bf093: $isSubmitted = $form->isSubmitted(); goto aac46; d5d4e: $mfaAuthenticator = new MfaAuthenticator(); goto E4fb9; E4fb9: $qrCodeLink = $mfaAuthenticator->getQrCodeLink($user->getMfaSecret(), $user->getUserName(), "\103\154\x6f\165\x64\x50\x61\156\145\154"); goto C94ea; Ddd48: $response = $this->redirect($this->generateUrl("\143\x6c\160\x5f\x75\163\x65\162\x5f\163\x65\x63\165\x72\151\x74\x79")); goto ab5cc; c1d34: ea190: goto dfe2f; e9755: if (!(true === $user->hasMfaEnabled())) { goto F7aa2; } goto Ddd48; Ffd19: $form->handleRequest($request); goto Bf093; b3657: return $response; goto c1d34; C2a27: $response = $this->render("\106\162\157\156\x74\145\156\144\57\125\x73\145\162\x2f\x41\x63\143\157\x75\x6e\164\x2f\x65\156\x61\x62\x6c\145\x2d\x6d\146\141\x2e\150\164\155\154\56\164\167\151\147", ["\161\162\103\157\x64\145\x4c\151\x6e\153" => $qrCodeLink, "\x75\163\x65\162" => $user, "\146\x6f\x72\x6d" => $form->createView(), "\x66\157\162\x6d\105\162\162\x6f\162\x73" => $this->formErrors]); goto e4bf8; dfe2f: c30c6: goto a46da; e4bf8: return $response; goto D09ca; aac46: if (!(true === $isSubmitted)) { goto c30c6; } goto a8d4f; D0639: if (!(false === is_null($response))) { goto ea190; } goto b3657; D09ca: } private function createMfaCodeForm(User $user) : Form { goto C52b9; A1bf9: return $form; goto B8749; C52b9: $form = $this->createForm("\101\160\x70\x5c\x46\157\x72\155\134\x55\x73\x65\162\x53\145\143\x75\162\151\x74\x79\x4d\146\141\x43\157\x64\145\x54\171\x70\145", $user, ["\x61\x63\x74\151\x6f\156" => $this->generateUrl("\143\x6c\x70\x5f\165\163\x65\162\x5f\x73\x65\x63\165\x72\x69\164\x79\137\145\156\141\142\x6c\x65\x5f\x6d\x66\141"), "\155\x65\164\x68\x6f\144" => "\120\x4f\x53\x54", "\141\164\x74\162" => []]); goto b8b14; b8b14: $form->add("\163\165\142\x6d\x69\x74", SubmitType::class, ["\x61\164\x74\162" => ["\x63\154\x61\163\x73" => "\x62\x74\x6e\40\142\164\156\x2d\x62\x6c\165\x65\x20\x62\164\x6e\55\154\x67\x20\x62\x74\156\55\x73\x75\142\x6d\151\x74\55\x6d\146\141\x2d\x63\x6f\144\x65"], "\x6c\141\142\x65\x6c" => "\123\x61\x76\145"]); goto A1bf9; B8749: } private function handleMfaCodeForm(Request $request, Form $form, UserManager $userManager) { goto f0a54; ebb26: goto A4d0c; goto eeb62; b2d99: A4d0c: goto D0d7e; Be258: $this->formErrors = $this->getErrorMessages($form); goto ebb26; eeb62: f6787: goto Aeaa9; f0a54: if (true === $form->isValid()) { goto f6787; } goto Be258; Aeaa9: try { goto E2e6f; F4571: return $response; goto cf624; de3d9: $user->setMfa(true); goto D5865; c705a: $response = $this->redirect($this->generateUrl("\143\154\x70\137\165\x73\x65\162\137\x73\x65\x63\x75\162\x69\164\171")); goto F4571; f7fa8: $user = $this->getUser(); goto de3d9; D5865: $userManager->updateUser($user); goto B1d37; B1d37: $session->getFlashBag()->set("\x73\x75\x63\143\x65\163\163", $this->translator->trans("\124\x77\157\x2d\106\141\x63\164\x6f\x72\x20\101\165\x74\x68\x65\156\x74\x69\x63\141\164\151\x6f\x6e\40\150\141\x73\40\x62\145\x65\156\40\145\x6e\x61\x62\154\145\144\56")); goto c705a; E2e6f: $session = $request->getSession(); goto f7fa8; cf624: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("\x64\x61\x6e\147\x65\162", $this->translator->trans("\101\156\x20\x65\162\162\157\x72\40\x68\x61\x73\x20\157\143\x63\165\x72\x72\x65\x64\54\x20\x65\162\162\157\162\x20\x6d\145\x73\x73\x61\x67\145\72\x20\x25\145\x72\162\x6f\x72\115\145\x73\163\141\x67\145\45", ["\45\145\162\162\157\x72\x4d\145\x73\163\141\x67\145\x25" => $e->getMessage()])); } goto b2d99; D0d7e: } public function disableMfa(Request $request, UserManager $userManager) : Response { try { goto C5bad; b54ec: $response = $this->redirect($this->generateUrl("\x63\154\x70\x5f\x75\x73\x65\x72\137\163\x65\x63\165\162\x69\164\x79")); goto E79e4; aaa5b: $user->setMfa(false); goto f94e2; B0054: $user = $this->getUser(); goto aaa5b; ecc76: $session->getFlashBag()->set("\x73\x75\x63\143\145\163\163", $this->translator->trans("\x54\167\x6f\x2d\x46\141\143\164\157\x72\x20\x41\x75\x74\x68\145\x6e\164\x69\143\141\164\151\157\x6e\x20\150\141\163\40\x62\x65\145\156\40\x64\151\x73\141\142\154\x65\144\x2e")); goto b54ec; f94e2: $userManager->updateUser($user); goto ecc76; C5bad: $session = $request->getSession(); goto B0054; E79e4: } catch (\Exception $e) { goto e0ffe; ad4ac: $session->getFlashBag()->set("\144\x61\x6e\147\x65\x72", $this->translator->trans("\101\x6e\40\145\162\162\x6f\162\x20\x68\141\x73\x20\157\143\143\165\162\162\145\144\x2c\x20\145\162\x72\x6f\x72\x20\155\x65\163\163\x61\147\x65\x3a\40\x25\145\x72\162\157\162\115\145\x73\x73\x61\x67\145\x25", ["\45\145\x72\162\x6f\x72\x4d\x65\163\163\x61\x67\145\45" => $e->getMessage()])); goto Baf87; Baf87: $response = $this->redirect($this->generateUrl("\x63\154\160\137\x75\163\x65\x72\x5f\163\x65\x63\165\162\151\164\x79")); goto C54a9; e0ffe: $this->logger->exception($e); goto ad4ac; C54a9: } return $response; } }

Function Calls

None

Variables

None

Stats

MD5 ee1eadea078bbba432f343de006a3ccb
Eval Count 0
Decode Time 65 ms