mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Disable default form security token - our sessions are identified by URL, so this won't work! (Although we could possibly find a better way than simply disabling this in the future)
This commit is contained in:
parent
dac113fe3d
commit
20207a8dee
@ -83,6 +83,10 @@ abstract class MultiForm extends Form {
|
||||
* takes the fields, actions and validation (if any) for the step, setting up the form.
|
||||
*/
|
||||
public function init() {
|
||||
// Disable security token. We tie a form to a session by URL.
|
||||
// @TODO Is there a better way than simply disabling this?
|
||||
$this->disableSecurityToken();
|
||||
|
||||
// Set up the session
|
||||
$this->setSession();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user