Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid CSRF Token Required #3853

Closed
manellen3 opened this issue Jun 14, 2017 · 7 comments
Closed

Valid CSRF Token Required #3853

manellen3 opened this issue Jun 14, 2017 · 7 comments

Comments

@manellen3
Copy link

Dear osTicket,

I've found a weird thing when I tried to login as agent in scp/login.php. The error is

Valid CSRF Token Required

Does anyone know what I've missed?

Thank in advance.

@manellen3
Copy link
Author

manellen3 commented Jun 14, 2017

Dear Team,

The system information as follow:

  • 64bit Amazon Linux 2017.03 v2.4.0
  • Apache
  • PHP 7.0.16
  • osTicket version 1.10

I've read some other similar issues but it can't solve my issue. For example, the suggestion to clear cache and it doesn't work and osTicket version 1.10 should work on previous PHP 7.1.

Thank in advance.

@JediKev
Copy link
Contributor

JediKev commented Jun 14, 2017

Hello @manellen3
Wherever you read "the suggest to clear cache" they are correct, however they left out one detail. You need to delete all cache AND COOKIES then force refresh your login page (yourosticketdomain.com/scp).

@manellen3
Copy link
Author

Hello @JediKev,

Thanks for your suggestion.

Yes it is work, but my domain looks weird when I tried to force access to agent login at
http://www.myosticketdomain.com/ticketing/scp,
it will redirect to e.g.
http://myosticketdomain.ap-southeast-1.elasticbeanstalk.com/ticketing/scp/login.php
How it come?

And how I need to force login agent to http://www.myosticketdomain.com/ticketing/scp instead of the regular one at http://www.myosticketdomain.com/ticketing/scp/login.php?

Please assist me where i've missed.
Thank in advance.

@JediKev
Copy link
Contributor

JediKev commented Jun 15, 2017

Yes it is work, but my domain looks weird when I tried to force access to agent login at
http://www.myosticketdomain.com/ticketing/scp,
it will redirect to e.g.
http://myosticketdomain.ap-southeast-1.elasticbeanstalk.com/ticketing/scp/login.php
How it come?

This sounds like you haven't registered your own domain name with your server. Take a look at this link.

As for your Valid CSRF Token Required error: #3546

@manellen3
Copy link
Author

This sounds like you haven't registered your own domain name with your server. Take a look at this link.

I'll try it

As for your Valid CSRF Token Required error: #3546

I've follow the steps and it doesn't work for me. I'm trying this one:

$this->data->session_data = "";

Any ideas?

@JediKev
Copy link
Contributor

JediKev commented Jun 20, 2017

I've follow the steps and it doesn't work for me. I'm trying this one:

$this->data->session_data = "";

Any ideas?

The suggested fix was approved and seemed to fix everyone's issue with CSRF Tokens. Try adding the fix again and run the REPAIR TABLE command suggested in the comments here: 424bfc9#comments

@manellen3
Copy link
Author

$this->data->session_data = "";

It is actually work, it was cache.

Thanks @JediKev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants