Jump to content

"Invalid token: direct access to this link ..."


leonidnk

Recommended Posts

Hi,

I use version 1.7.8.1 Works very well. However, very often I got message "Invalid token: direct access to this link may lead to a potential security breach. Do you want to display this page? ". Cannot understand why?

Please, bring my some idea regarding the problem.

 

Invalid-token-01.png

Edited by leonidnk
Better Image (see edit history)
Link to comment
Share on other sites

If you look at the urls in your backoffice they look something like

www.text.com/admin/index.php?controller=AdminDashboard&token=068154d5c60e828cb859a8e55f6f651a

The last part (token=....) is your token - a kind of security feature. Prestashop has set a timeout on those tokens. 

So when you get this message after you had lunch you can just click on "I understand the risk".

  • Like 2
Link to comment
Share on other sites

41 minutes ago, musicmaster said:

If you look at the urls in your backoffice they look something like

www.text.com/admin/index.php?controller=AdminDashboard&token=068154d5c60e828cb859a8e55f6f651a

The last part (token=....) is your token - a kind of security feature. Prestashop has set a timeout on those tokens. 

So when you get this message after you had lunch you can just click on "I understand the risk".

Thank you very much!

Link to comment
Share on other sites

  • 1 month later...
  • 5 weeks later...
  • 4 months later...
  • 8 months later...
46 minutes ago, mr_absinthe said:

Hi, the post and module cannot be found.

Hi the module has issues so I made the repo private, i did not have time since then to fix it.
the fix is easy with an override
you need to change this variable
https://github.com/PrestaShop/PrestaShop/blob/9718dd5aea9fac3da044c44842de2d9c69b835a6/classes/controller/AdminController.php#L422

    public const AUTH_COOKIE_LIFETIME = 3600;

 

Edited by Ali Samie (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...