From c5252f9fc4c90da6f84510d614659e3fd54414c2 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 19 Mar 2021 20:38:20 +0100 Subject: [PATCH] fix totp --- src/Entity/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/User.php b/src/Entity/User.php index 43f9167..4ab9d2c 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -202,7 +202,7 @@ class User implements UserInterface, TwoFactorInterface, EntityInterface public function getGoogleAuthenticatorUsername(): string { - return $this->getTotpAuthenticationUsername(); + return $this->getEmail(); } public function getGoogleAuthenticatorSecret(): ?string