Skip to content

Commit 91de0f7

Browse files
committed
AC-10982::[2FA] Integrate with Duo Web SDK to support Universal Prompt
1 parent 3f08d7e commit 91de0f7

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(),
@@ -230,9 +228,6 @@ public function verify(UserInterface $user, DataObject $request): bool
230228
if (empty($savedState) || empty($username)) {
231229
return false;
232230
}
233-
if ($this->formKey->getFormKey().static::AUTH_SUFFIX != $savedState) {
234-
return false;
235-
}
236231

237232
try {
238233
// Not saving token as this is just for verificaiton purpose

0 commit comments

Comments
 (0)