Skip to content

Commit

Permalink
Remove csrf
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielss89 authored Feb 3, 2024
1 parent 66fe368 commit f3650f7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ public function __construct()
],
]);

$this->add([
'type' => 'Zend\Form\Element\Csrf',
'name' => 'csrf',
]);

$this->add([
'name' => 'submit',
'type' => 'Zend\Form\Element\Button',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ public function __construct()
],
]);

$this->add([
'type' => 'Zend\Form\Element\Csrf',
'name' => 'csrf',
]);

$this->add([
'name' => 'submit',
'type' => 'Zend\Form\Element\Button',
Expand Down
1 change: 0 additions & 1 deletion view/zfc-user-forgot-password/change-password.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ echo $this->form()->openTag($form);
echo $this->formRow($form->get('new_password')) . '<br />';
echo $this->formRow($form->get('confirm_new_password')) . '<br />';
echo $this->formRow($form->get('submit')->setLabel('Save'));
echo $this->formRow($form->get('csrf'));
echo $this->form()->closeTag($form);
1 change: 0 additions & 1 deletion view/zfc-user-forgot-password/request.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ $form = $this->form;
echo $this->form()->openTag($form);
echo $this->formRow($form->get('email')) . '<br />';
echo $this->formRow($form->get('submit')->setLabel('Request new password'));
echo $this->formRow($form->get('csrf'));
echo $this->form()->closeTag($form);

0 comments on commit f3650f7

Please sign in to comment.