Skip to content
Snippets Groups Projects
Commit b96bb692 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Add missing CSRF token.

- Resolves VUFIND-1179
parent a014028f
No related merge requests found
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<div class="error"><?=$this->transEsc('recovery_user_not_found') ?></div> <div class="error"><?=$this->transEsc('recovery_user_not_found') ?></div>
<? else: ?> <? else: ?>
<form id="newpassword" class="form-horizontal" action="<?=$this->url('myresearch-newpassword') ?>" method="post" data-toggle="validator" role="form"> <form id="newpassword" class="form-horizontal" action="<?=$this->url('myresearch-newpassword') ?>" method="post" data-toggle="validator" role="form">
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth()->getManager()->getCsrfHash(true))?>" name="csrf"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->hash) ?>" name="hash"/> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->hash) ?>" name="hash"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->username) ?>" name="username"/> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->username) ?>" name="username"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth_method) ?>" name="auth_method"/> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth_method) ?>" name="auth_method"/>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<? else: ?> <? else: ?>
<form data-ajax="false" action="<?=$this->url('myresearch-newpassword') ?>" method="post"> <form data-ajax="false" action="<?=$this->url('myresearch-newpassword') ?>" method="post">
<?=$this->auth()->getNewPasswordForm() ?> <?=$this->auth()->getNewPasswordForm() ?>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth()->getManager()->getCsrfHash(true))?>" name="csrf"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->hash) ?>" name="hash"/> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->hash) ?>" name="hash"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->username) ?>" name="username"/> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->username) ?>" name="username"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth_method) ?>" name="auth_method"/> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth_method) ?>" name="auth_method"/>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment