09-06-2017, 12:34 AM
Thanks Brandin, in these lines I have:
<pre></pre>
Change them by:
<pre></pre>
It works as a redirect to a page that explains what happened, the question is: Is it the best option?
<pre>
Code:
$token = Input::get('csrf');
if(Input::exists()){
if(!Token::check($token)){
die('Token doesn\'t match!');
}
}
Change them by:
<pre>
Code:
$token = Input::get('csrf');
if(Input::exists()){
if(!Token::check($token)){
Redirect::to($us_url_root.'users/accion-no-permitida.php'); <!-- here -->
}
}
It works as a redirect to a page that explains what happened, the question is: Is it the best option?