Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
\Security::check_token() give me alwasy false
soseki
June 2020
Hi there,
I can not get true from \Security::check_token().
To reproduce this, I have following code.
php oil console
\Security::check_token(\Security::generate_token())
I also have followings in cofig.php as well.
'security' => array(
'csrf_autoload' => false,
// 'csrf_autoload_methods' => array('post', 'put', 'delete'),
// 'csrf_bad_request_on_fail' => false,
// 'csrf_auto_token' => false,
'csrf_token_key' => 'fuel_csrf_token',
'csrf_expiration' => 86400, // 1day
/**
* A salt to make sure the generated security tokens are not predictable
*/
'token_salt' => 'mySalt',
)
FuelPHP version is 1.9-dev
Do you have any suggestion for this?
Harro
June 2020
Accepted Answer
Security tokens use a cookie. You don't have cookies on the commandline.
soseki
June 2020
Thats right.
Thanks for your help
:)
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
June 2020
soseki
June 2020