Skip to content

The script does not create a new token. Same token at every run. #5

@halojoy

Description

@halojoy

The fix is to put the setToken in echoInputField().
And not in the __construct.

public function echoInputField()
	{
                $this->setToken();
		$token = $this->getToken();
		echo '<input type="hidden" name="'.$this->namespace.'" value="'.$token.'">';
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions