Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.189.143.114
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
src /
Form /
Delete
Unzip
Name
Size
Permission
Date
Action
ChangePasswordFormType.php
2.38
KB
-rw-rw-r--
2023-08-22 16:29
PersonalType.php
2.6
KB
-rw-rw-r--
2023-08-29 09:18
ProfileFormType.php
2.3
KB
-rw-rw-r--
2023-08-29 09:18
RegistrationType.php
2.06
KB
-rw-rw-r--
2023-08-22 16:29
ResettingFormType.php
1.57
KB
-rw-rw-r--
2023-08-22 16:29
Save
Rename
<?php namespace App\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\Extension\Core\Type\PasswordType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; use Symfony\Component\Validator\Constraints\NotBlank; /** * @final */ class ProfileFormType extends AbstractType { /** * @var string */ private $class; /** * @param string $class The User class name */ public function __construct(string $class=null) { $this->class = $class; } /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $this->buildUserForm($builder, $options); $constraintsOptions = [ 'message' => 'fos_user.current_password.invalid', ]; if (!empty($options['validation_groups'])) { $constraintsOptions['groups'] = [reset($options['validation_groups'])]; } $builder->add('current_password', PasswordType::class, [ 'label' => 'form.current_password', 'translation_domain' => 'FOSUserBundle', 'mapped' => false, 'constraints' => [ new NotBlank(), new UserPassword($constraintsOptions), ], 'attr' => [ 'autocomplete' => 'current-password', ], ]); } /** * {@inheritdoc} */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ 'data_class' => $this->class, 'csrf_token_id' => 'profile', ]); } /** * {@inheritdoc} */ public function getBlockPrefix(): string { return 'fos_user_profile'; } /** * Builds the embedded form representing the user. */ protected function buildUserForm(FormBuilderInterface $builder, array $options) { $builder ->add('username', null, ['label' => 'form.username', 'translation_domain' => 'FOSUserBundle']) ->add('email', EmailType::class, ['label' => 'form.email', 'translation_domain' => 'FOSUserBundle']) ; } }