We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d0d2e8 commit 50067a5Copy full SHA for 50067a5
1 file changed
src/Authentication/TwoFactorAuth/Service/TwoFAUserService.php
@@ -15,6 +15,9 @@
15
use OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Factory\UserModelFactoryInterface;
16
use OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Settings\TwoFASettingsInterface;
17
18
+/**
19
+ * todo-high: challenge the idea - session part should go to the separate login state service
20
+ */
21
class TwoFAUserService implements TwoFAUserServiceInterface
22
{
23
public const USER_SESSION_KEY = 'pending_authorized_user';
@@ -45,6 +48,7 @@ public function loginUser(string $userId): void
45
48
46
49
$this->session->remove(self::USER_SESSION_KEY);
47
50
51
+ // todo-high: looks like it can go to the infrastructure layer
52
$user = $this->userFactory->create();
53
$user->load($userId);
54
0 commit comments