CSRF-Protector-PHP icon indicating copy to clipboard operation
CSRF-Protector-PHP copied to clipboard

Automatic Token

Open g7sim opened this issue 4 years ago • 1 comments

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 avatar Sep 03 '21 16:09 g7sim

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" ).

g7sim avatar Sep 03 '21 16:09 g7sim