Skip to content

Commit 31a770d

Browse files
committed
Merge branch 'AC10982' of https://github.com/magento-gl/security-package into AC10982
2 parents 11816ae + 91de0f7 commit 31a770d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

TwoFactorAuth/Model/Provider/Engine/DuoSecurity.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,12 @@ public function __construct(
121121
ScopeConfigInterface $scopeConfig,
122122
EncryptorInterface $encryptor,
123123
UrlInterface $urlBuilder,
124-
FormKey $formKey,
125124
Client $client = null,
126125
DuoAuth $duoAuth = null
127126
) {
128127
$this->scopeConfig = $scopeConfig;
129128
$this->encryptor = $encryptor;
130129
$this->urlBuilder = $urlBuilder;
131-
$this->formKey = $formKey;
132130
if ($this->isDuoForcedProvider()) {
133131
$this->client = $client ?? new Client(
134132
$this->getClientId(),
@@ -228,9 +226,6 @@ public function verify(UserInterface $user, DataObject $request): bool
228226
if (empty($savedState) || empty($username)) {
229227
return false;
230228
}
231-
if ($this->formKey->getFormKey().static::AUTH_SUFFIX != $savedState) {
232-
return false;
233-
}
234229

235230
try {
236231
// Not saving token as this is just for verificaiton purpose

0 commit comments

Comments
 (0)