We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 112df4a + ecb207a commit 6c3097eCopy full SHA for 6c3097e
1 file changed
src/Authentication/Actions/Email2FA.php
@@ -67,10 +67,7 @@ public function handle(IncomingRequest $request)
67
return redirect()->route('auth-action-show')->with('error', lang('Auth.invalidEmail'));
68
}
69
70
- /** @var UserIdentityModel $identityModel */
71
- $identityModel = model(UserIdentityModel::class);
72
-
73
- $identity = $identityModel->getIdentityByType($user, $this->type);
+ $identity = $this->getIdentity($user);
74
75
if (empty($identity)) {
76
return redirect()->route('auth-action-show')->with('error', lang('Auth.need2FA'));
0 commit comments