/**
  * Handle the fields.
  *
  * @param ResetPasswordFormBuilder $builder
  */
 public function handle(ResetPasswordFormBuilder $builder)
 {
     $builder->setFields([]);
     if (!$builder->getEmail()) {
         $builder->addField(['field' => 'email', 'type' => 'anomaly.field_type.email', 'label' => 'anomaly.module.users::field.email.name', 'required' => true]);
     }
     if (!$builder->getCode()) {
         $builder->addField(['field' => 'code', 'type' => 'anomaly.field_type.text', 'label' => 'anomaly.module.users::field.reset_code.name', 'required' => true]);
     }
     $builder->addFields([['field' => 'password', 'type' => 'anomaly.field_type.text', 'label' => 'anomaly.module.users::field.password.name', 'required' => true, 'rules' => ['confirmed'], 'config' => ['type' => 'password']], ['field' => 'password_confirmation', 'type' => 'anomaly.field_type.text', 'label' => 'anomaly.module.users::field.confirm_password.name', 'required' => true, 'config' => ['type' => 'password']]]);
 }
 /**
  * Handle the fields.
  *
  * @param ResetPasswordFormBuilder $builder
  */
 public function handle(ResetPasswordFormBuilder $builder)
 {
     $builder->setFields(['password' => ['type' => 'anomaly.field_type.text', 'label' => 'anomaly.module.users::field.password.name', 'required' => true, 'rules' => ['confirmed'], 'config' => ['type' => 'password']], 'password_confirmation' => ['type' => 'anomaly.field_type.text', 'label' => 'anomaly.module.users::field.confirm_password.name', 'required' => true, 'config' => ['type' => 'password']]]);
 }