diff --git a/src/Controller/ApiUserTwoFAController.php b/src/Controller/ApiUserTwoFAController.php index d68b691..7a3bebc 100644 --- a/src/Controller/ApiUserTwoFAController.php +++ b/src/Controller/ApiUserTwoFAController.php @@ -85,7 +85,7 @@ public function delete($id) { $this->connectedUser->setTwoFactorAuthEnabled(false); $this->connectedUser->setSecretKey(''); - $this->connectedUser->setRecoveryCodes(null); + $this->connectedUser->setRecoveryCodes([]); $this->userTable->save($this->connectedUser); $this->getResponse()->setStatusCode(204);