Add missing CSRF check in TwoFactorController::deactivate()

This commit is contained in:
Frédéric Guillot
2019-01-30 20:21:12 -08:00
parent ef1abecee4
commit 19ea9ed620
2 changed files with 9 additions and 1 deletions

View File

@@ -119,6 +119,7 @@ class TwoFactorController extends UserViewController
*/
public function deactivate()
{
$this->checkCSRFForm();
$user = $this->getUser();
$this->checkCurrentUser($user);