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

Automatic Token #150

Open
g7sim opened this issue Sep 3, 2021 · 1 comment
Open

Automatic Token #150

g7sim opened this issue Sep 3, 2021 · 1 comment

Comments

@g7sim
Copy link

g7sim commented Sep 3, 2021

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@g7sim
Copy link
Author

g7sim commented Sep 3, 2021

At the moment - in config.php : array -> CSRFP_TOKEN: '' name of the csrf token as it will appear in COOKIE, SESSION, GET or POST
I would be simpler and safer to generate a random token by the server so that the token is not always the same.
In config.php stands in test -> $cscfg = array(
"CSRFP_TOKEN" => "CSRFP-Token",
How can i change this value to bin2hex(random_bytes(10)) ?
Can You give me a code please ( array_push($cscfg["CSRFP_TOKEN"], "bin2hex(random_bytes(10))"); doesnt change "CSRFP_TOKEN" ).

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

1 participant