From 6a6ff152ab9fb70d2ca570fbc851bbb56353523e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 25 Sep 2022 00:54:31 +0200 Subject: [PATCH] Fixed two factor authentication exception --- src/Entity/UserSystem/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity/UserSystem/User.php b/src/Entity/UserSystem/User.php index 7f93091f..918d459f 100644 --- a/src/Entity/UserSystem/User.php +++ b/src/Entity/UserSystem/User.php @@ -762,7 +762,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe */ public function isBackupCode(string $code): bool { - return in_array($code, $this->backupCodes, true); + return in_array($code, $this->getBackupCodes(), true); } /** @@ -772,7 +772,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe */ public function invalidateBackupCode(string $code): void { - $key = array_search($code, $this->backupCodes, true); + $key = array_search($code, $this->getBackupCodes(), true); if (false !== $key) { unset($this->backupCodes[$key]); }