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\PasswordType; use Symfony\Component\Form\Extension\Core\Type\RepeatedType; 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 ChangePasswordFormType 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) { $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', ], ]); $builder->add('plainPassword', RepeatedType::class, [ 'type' => PasswordType::class, 'options' => [ 'translation_domain' => 'FOSUserBundle', 'attr' => [ 'autocomplete' => 'new-password', ], ], 'first_options' => ['label' => 'form.new_password'], 'second_options' => ['label' => 'form.new_password_confirmation'], 'invalid_message' => 'fos_user.password.mismatch', ]); } /** * {@inheritdoc} */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ 'data_class' => $this->class, 'csrf_token_id' => 'change_password', ]); } /** * {@inheritdoc} */ public function getBlockPrefix(): string { return 'fos_user_change_password'; } }