01-21-2017, 08:47 PM
Thanks for the reply.
I don't appear to have an Ajax or Javascript in the login.php page, just some CSS to change the format/layout
Have confirmed that commenting out `$token = Input::get('csrf');
if(!Token::check($token)){
die('Token doesn\'t match!');
}`
That the page loads correctly.
Just so I'm clear, I've added my new login.php and homepage.php into usersc/ from index.php I've changed the first piece of code
index.php
<pre></pre>
The top of homepage.php has this code
homepage.php
<pre></pre>
It all appears to redirect correctly, just that login.php ends up with a token error.
link to login.php -
Again thanks for you help with this.
Wayne
I don't appear to have an Ajax or Javascript in the login.php page, just some CSS to change the format/layout
Have confirmed that commenting out `$token = Input::get('csrf');
if(!Token::check($token)){
die('Token doesn\'t match!');
}`
That the page loads correctly.
Just so I'm clear, I've added my new login.php and homepage.php into usersc/ from index.php I've changed the first piece of code
index.php
<pre>
Code:
require_once 'users/init.php';
if(file_exists("usersc/homepage.php")){
//perform redirect if homepage files exist
//this if{} block may be deleted once installed
header("Location: usersc/homepage.php");
The top of homepage.php has this code
homepage.php
<pre>
Code:
require_once '../users/init.php';
if (!securePage($_SERVER['PHP_SELF'])){die();}
It all appears to redirect correctly, just that login.php ends up with a token error.
link to login.php -
Code:
http://pastebin.com/r19BvB3k
Again thanks for you help with this.
Wayne