Skip to content

Commit d11c8f6

Browse files
committed
redirect to self by default
1 parent 84ab5f5 commit d11c8f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controller/Component/BruteForceProtectionComponent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BruteForceProtectionComponent extends Component
2828
'firstKeyAttemptLimit' => false, // can be used for example when you want tighter limits on username
2929
'security' => 'all', // which inputs should be encrypted in cache - none, firstKeyUnsecure (i.e. username), all
3030
'flash' => true,
31-
'redirectUrl' => '/',
31+
'redirectUrl' => null, // redirect to self
3232
'data' => null, // uses request->getData if null, otherwise provide an array of input data
3333
];
3434

@@ -139,4 +139,4 @@ public function recordFail($ip, $key)
139139

140140

141141
}
142-
}
142+
}

0 commit comments

Comments
 (0)